Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main() {
- string name;
- cout << "Enter name: ";
- cin >> name;
- cout << "Your name is " << name << endl;
- }
- #include <QCoreApplication>
- #include <iostream>
- #include <string>
- int main(int argc, char *argv[])
- {
- QCoreApplication a(argc, argv);
- std::string name;
- std::cout << "Enter name: ";
- std::cin >> name;
- std::cout << "Your name is " << name << std::endl;
- return a.exec();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement