OKIEWARDOYO

C++ QT No.2.4

Feb 27th, 2014
930
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1. #include <QCoreApplication>
  2. #include <QTextStream>
  3.  
  4. class HelloWorld{
  5. public:
  6.     HelloWorld(){}
  7.     ~HelloWorld(){}
  8.     void say(){
  9.         QTextStream out(stdout);
  10.         out << "MediaTutorial Hello world"<<endl;
  11.     }
  12. };
  13.  
  14. int main(int argc, char *argv[])
  15. {
  16.     QCoreApplication a(argc, argv);
  17.  
  18.     HelloWorld hw;
  19.     hw.say();
  20.     return 0;
  21.     //return a.exec();
  22. }
Advertisement
Add Comment
Please, Sign In to add comment