Advertisement
Kagalive

Hello,World

Sep 30th, 2020
1,182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.37 KB | None | 0 0
  1. #include <iostream> //Anything that starts with a # is a pre-processor command
  2. #include <string>
  3.  
  4. using namespace std;
  5. int main() //You can put parameters in here (eg for running from a console with parameters)
  6. {
  7.    std::cout << "Type your name" << std::endl;
  8.    std::string name;
  9.    std::cin >> name;
  10.    std::cout << "Hello, " << name << std::endl;
  11.  
  12.    return 0;
  13.  
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement