Instead of putting all of that framework around your loop, first get a simple loop working so that you know what's needed:
#include <iomanip>
#include <iostream>
using namespace std;
void table_row ( int multiplier )
{
for ( int i = 1; i <= 12; i++ )
cout<< setw ( 4 ) << i * multiplier;
cout<<endl;
}
int main()
{
for ( int i = 1; i <= 12; i++ )
table_row ( i );
}
Narue
Bad Cop
15,460 posts since Sep 2004
Reputation Points: 6,464
Solved Threads: 1,401