Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. using namespace std;
  4. int main() {
  5. string name;
  6. cout << "Enter name: ";
  7. cin >> name;
  8. cout << "Your name is " << name << endl;
  9. }
  10.  
  11. #include <QCoreApplication>
  12. #include <iostream>
  13. #include <string>
  14.  
  15. int main(int argc, char *argv[])
  16. {
  17. QCoreApplication a(argc, argv);
  18. std::string name;
  19. std::cout << "Enter name: ";
  20. std::cin >> name;
  21. std::cout << "Your name is " << name << std::endl;
  22.  
  23.  
  24. return a.exec();
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement