Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //A simple knowledge of functions and what it can do.
- #include <iostream>
- using namespace std;
- //Declares for the program to read the function and it's code to run it succesfully.
- void simpleFunction();
- //Standard manin function that starts when user opens program.
- int main()
- {
- simpleFunction();
- return 0;
- }
- //function
- void simpleFunction()
- {
- cout << "If this text shows up it'll mean that the function succesfully worked!" << endl;
- system("pause");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement