Hi I'm learning C++ as a beginner through the book "C++ Primer by Stephen Prata". I have just learned a bit about creating my own functions and I'm now doing some practice at the end of the chapter. The problem is I'm meant to make output of:
"Three blind mice
Three blind mice
See how they run
See how they run"
Using my own functions, now so far the book has only taught me how to make functions with integers, I do no know what to make as a prototype at the top, and to call the functions where highlighted, could someone please advise me on what to do where red as a prototype if all I want is a function to display text?
// using 3 user defined functions
#include <iostream>
[B]tbm;
shr;[/B]
int main()
{
using namespace std;
cout << tbm << endl;
cout << tbm << endl;
cout << shr << endl;
cout << shr << endl;
system ("pause");
return 0;
}
[B]tbm [/B]
{
using namespace std;
cout << "Three blind mice";
}
[B]shr[/B]
{
using namespace std;
cout << "See how they run";
}