Kagalive

Hello,World

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