Kagalive

Hello,World

Sep 30th, 2020
741
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data