OKIEWARDOYO

C++ QT No.2.3

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