Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- void printSomething() //Those two brackets more known as parameters, you add them when you need additional information for your function.
- {
- 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 :)
- }
- int main()
- {
- printSomething();
- system("pause");
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement