Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream> //Anything that starts with a # is a pre-processor command
- #include <string>
- using namespace std;
- int main() //You can put parameters in here (eg for running from a console with parameters)
- {
- std::cout << "Type your name" << std::endl;
- std::string name;
- std::cin >> name;
- std::cout << "Hello, " << name << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement