Advertisement
Felanpro

Simple Function Knowledge

Nov 21st, 2015
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. //A simple knowledge of functions and what it can do.
  2.  
  3. #include <iostream>
  4. using namespace std;
  5.  
  6. //Declares for the program to read the function and it's code to run it succesfully.
  7. void simpleFunction();
  8.  
  9. //Standard manin function that starts when user opens program.
  10. int main()
  11. {
  12.     simpleFunction();
  13.     return 0;
  14.     }
  15.  
  16. //function
  17. void simpleFunction()
  18. {
  19.      cout << "If this text shows up it'll mean that the function succesfully worked!" << endl;
  20.      system("pause");
  21.      }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement