Advertisement
TheWhiteFang

[C++][2] Printing text

Oct 2nd, 2014
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. #include <iostream> //pre-processor directive
  2.  
  3. using namespace std; //std library
  4.  
  5. int main() //it starts with the main 1st
  6. {
  7.     cout << "Hello world! " << endl; //to move to a new line we need to add endl
  8.     cout << "and kokoro \n"; // \n is the same as endl
  9.     cout << "walawei\n\n"; // basically by having \n\n we can add an empty line in between
  10.     cout << "sien la u";
  11.     cout << "\n u \n suk \n more \n than \n i \n do \n"; // you can also hv spaces like this
  12.     //cout- output stream object
  13.     return 0; //to tell that program ran fine
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement