Handout - Functions with no arguments
/* draw a tic tac toe board */
#include < iostream>
using namespace std;
/* these are the function prototypes */
void PrintVert(void);
void PrintHoriz (void);
int main ()
{
PrintVert();
PrintHoriz();
PrintVert();
PrintHoriz();
PrintVert();
return 0;
}
void PrintVert(void)
/* prints the vertical bars of a tic tac toe board */
{
cout << " x x" << endl;
cout << " x x" << endl;
cout << " x x" << endl;
cout << " x x" << endl;
return;
}
void PrintHoriz (void)
/* prints the horizontal bar of a tic tac toe board */
{
cout << "xxxxxxxxxxxxxx" << endl;
return;
}