Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- using namespace std;
- int main()
- {
- string q;
- string w;
- string Bob;
- string Emily;
- {
- cout << "Who is this? ";
- cin >> q;
- if (q == Bob)
- {
- cout << "Hey there bro. ";
- }
- if (q == Emily)
- {
- cout << "Hi friend :) ";
- }
- else
- {
- cout << "Oh hey " << q << ", how are you? ";
- }
- cin >> w;
- cout << "Hey, that's " << w;
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement