Skip to content

Instantly share code, notes, and snippets.

@waleoyediran
Created March 5, 2019 09:48
Show Gist options
  • Save waleoyediran/30eb55b83db7b6fee504cb3663da1b2c to your computer and use it in GitHub Desktop.
Save waleoyediran/30eb55b83db7b6fee504cb3663da1b2c to your computer and use it in GitHub Desktop.
Simple Hello world program in C++ that takes name from standard input.
#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