I know this is probably simple but I cannot get my user entered information to show up in my table display. I have messed with this until I am blind. Can someone please help me. Also can I make calculations by column?
<code>
int x ;
int y;
for( int row = 0; row < table.size(); row++ )
{
cout << "Enter Salesman number.";
cin >> x ;
for( int col = 1; col < table[row].size(); col++ )
{
cout << "Enter number sold.";
cin >> y;
}
}
cout << "Display table\n";
for( row = x; row < table.size(); row++ )
{
for( int col = y; col < table[row].size(); col++ )
cout << table[row][col] << '\t';
cout << endl;
}
</code>



LinkBack URL
About LinkBacks



Also, why do this: