then how to do use structure?
and how to read continuous 5 characters[including space] in a text file..
Qt Code:
char *runno=new char[5]; data>>runno;To copy to clipboard, switch view to plain text mode
then how to do use structure?
and how to read continuous 5 characters[including space] in a text file..
Qt Code:
char *runno=new char[5]; data>>runno;To copy to clipboard, switch view to plain text mode
You can always do it like this:
Qt Code:
strcpy(structure.no, data.constData());To copy to clipboard, switch view to plain text mode
Bookmarks