formatting

I'll keep this short, I'm on the last step of a program and the last part is to print a list I created "right justified 10 positions, with 8 numbers per line."

I have gotten as far as

void WriteList (ostream & output, numberdata Numbers[], int count)
{
// writes out the list of numbers
int i = 0;
while (i < count)
{
cout << Numbers[i].number << "\t";
i++;
}
cout << endl;
}


a little help?
Last edited on
Topic archived. No new replies allowed.