OKIEWARDOYO

C++ QT No.2.5

Feb 27th, 2014
1,043
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 <iostream>
  3.  
  4. using namespace std;
  5.  
  6. class HelloWorld{
  7. public:
  8.     HelloWorld(){}
  9.     ~HelloWorld(){}
  10.     void say(string a){
  11.         cout << a << endl;
  12.     }
  13. };
  14.  
  15. int main(int argc, char *argv[])
  16. {
  17.     QCoreApplication a(argc, argv);
  18.  
  19.     HelloWorld hw;
  20.     hw.say("MediaTutorial Hello world..");
  21.     return 0;
  22.     //return a.exec();
  23. }
Advertisement
Add Comment
Please, Sign In to add comment