Advertisement
zachdyer

Javascript Style Functions

Jun 25th, 2014
241
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include "print.h"
  2. #include "prompt.h"
  3.  
  4. int main()
  5. {
  6.     //This will return the input into the console
  7.     string name = prompt("What is your name, sucka?");
  8.     //This will print out 'Hello, [whatever you typed in]'
  9.     print("Hello, " + name);
  10.     return 0;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement