Advertisement
Felanpro

Including basic function in c++ :)

Nov 3rd, 2015
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.43 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4.  
  5. void printSomething()       //Those two brackets more known as parameters, you add them when you need additional information for your function.
  6. {
  7.      cout << "oooooo I am text on the screen" << endl;     //You add void because you don't return something. So it's just printing that text on the screen :)
  8.      }
  9.  
  10. int main()
  11. {
  12.     printSomething();
  13.     system("pause");
  14.     return 0;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement