![]() |
|
#1
|
|||
|
|||
Need help with 2-D array print outI have a problem where I have to print an airline seating chart and represent vacant seats with an asterick. I have the program working correctly, but I can't figure out how to print "Row 1", "Row 2", etc. at the beginning of each row when printing the array. Here is the part of the code where I initialize and print the array:
CPP / C++ / C Code:
The output looks like this: Any seat marked with an asterick is available. Code:
I would like it to look like this: Any seat marked with an asterick is available. Code:
Any help or suggestions would be greatly appreciated! Last edited by JdS : 28-Jun-2004 at 10:49.
Reason: Please insert [c] & [/c] tags between your example C codes
|
|||
|
#2
|
||||
|
||||
|
Well you've only got a single line to add :-P
CPP / C++ / C Code:
__________________
-Aaron |
|
#3
|
|||
|
|||
Duh- I was trying to make it way too hard!Thanks Aaron!
Yes, I see- it is very simple and I was trying to make it really hard. I went down the path of adding a column to the array and then changing from char to string.....then writing a statement for each cell in the first column. I appreciate your response! Cori |
Recent GIDBlog
Problems with the Navy (Chiefs) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| looking for a way to identify a repetitive sequence of digits in an array or string | sho | C++ Forum | 8 | 15-Jun-2004 00:59 |
| Speed up C++ code about 3d array! | Truong Son | C++ Forum | 0 | 16-Mar-2004 22:52 |
| Extra null element in an array | samtediou | MySQL / PHP Forum | 2 | 11-Dec-2003 12:52 |
| Guestbook error | BobbyDouglas | Web Design Forum | 1 | 16-Oct-2003 23:17 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The