import java.io.BufferedReader;import java.io.InputStreamReader;import java.util.Scanner; public class GetChar { public static void main(String[] args)throws Exception { //通过扫描类输入 Scanner in = new Scanner(System.in); char getChar = in.nextLine().charA…
How can I convert a QString to char* and vice versa ?(trolltech) Answer:In order to convert a QString to a char*, then you first need to get a latin1 representation of the string by calling toLatin1() on it which will return a QByteArray. Then call d…