Created
March 5, 2019 09:48
-
-
Save waleoyediran/30eb55b83db7b6fee504cb3663da1b2c to your computer and use it in GitHub Desktop.
Simple Hello world program in C++ that takes name from standard input.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
int main() | |
{ | |
string name; | |
cout << "Enter your name: "; | |
getline(std::cin, name); | |
cout << "Hello, " << name << "\n"; | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment