Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Intro to strings
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- cout << "Enter your name: ";
- string name{};
- cin >> name;
- cout << '\n';
- cout << "Hi, " << name << "!\n";
- cout << "I'm CPU! :-)\n";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement