Originally posted by Peter Shipway: I would have to use a counter until it reaches 5 or n
Hint: You already have a counter, there's no reason to add another.
0 0 0 0 0 0 etc.
Notice how I pointed out that there will only be 5 new lines, not 25. So, printing a new line with each value is not what you want to do. [ August 03, 2004: Message edited by: Darin Niard ]
It's not just printing the first line -- it's printing everything on one line. Think about when you want a new line to be printed. After a single row is printed, right? If you have a 5x5 array, you're going to print a new line only 5 times... think about it. [ August 03, 2004: Message edited by: Darin Niard ]
Classes don't share members with each other unless there is an inner/outer relationship, and of course in the case of inheritance.
All classes DO have access to your "filename" variable, ie, docMaker.filename is available for use. [ August 03, 2004: Message edited by: Darin Niard ]
Just write a for loop that uses your 'count' variable as a stopping point to append spaces to a string, then stick that string on the beginning of your print statements. You need to pass ++count or count+1 instead of count++ though, because right now your program is just passing 0s in each call. [ July 31, 2004: Message edited by: Darin Niard ]