#include #include #include #include #include #include #include int main(int argc, char *argv[]) { QCoreApplication a(argc, argv); QHash hash; hash.insert(0, "working"); hash.insert(1, "hard"); hash.insert(2, "!"); QString str("this is a QDataStream test "); QFile file_out("test.dat"); if(!file_out.open(QIODevice::WriteOnly)) { std::cerr<<"can not open file test.dat:"< b; QString str1; in>> c >> str1 >> b; qDebug()<::const_iterator j; for(j = b.constBegin(); j != b.constEnd(); j++) qDebug()<