home *** CD-ROM | disk | FTP | other *** search
- // Instructions
- // Demonstrates writing new functions
-
- #include <iostream>
-
- using namespace std;
-
- // function prototype (declaration)
- void instructions();
-
- int main()
- {
- instructions();
-
- return 0;
- }
-
- // function definition
- void instructions()
- {
- cout << "Welcome to the most fun you've ever had with text!\n\n";
- cout << "Here's how to play the game...\n";
- }
-
-
-