Advertisement
Guest User

Untitled

a guest
Apr 20th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. #include <QtCore/qdebug.h>
  2. #include <QtCore/qcoreapplication.h>
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. int main(int argc, char **argv)
  7. {
  8. cout << "pluto" << endl;
  9. QCoreApplication app(argc, argv);
  10. qDebug() << "pippo" << endl;
  11. return app.exec();
  12. //return 0;
  13. }
  14.  
  15. qmake ...other args... CONFIG+=console
  16.  
  17. #include <QTextStream>
  18.  
  19. QTextStream cout(stdout);
  20. cout << "stringn";
  21.  
  22. QTextSteam cerr(stderr);
  23. cerr << "error!n";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement