![]() |
|
#1
|
|||
|
|||
C++ help...I really need help with a problem for a class. I'm completely lost on what to do. And, it's due tomorrow. Anyone that can help, please do, anything is greatly appreciated...
My problem is this: I have a text file with the following in it Code:
I have to read that in (no problem doing that), then my output must look like this: Code:
The requirements are: 1 dimensional array for city names 2 dimensional array for the distance function to read the text function to display the output Here's what I've currently got down, not much, since I keep re-writing it trying to figure it out... CPP / C++ / C Code:
I hate to ask for help on a class assignment, I'm just desperate, since it's due tomorrow. I'll be up all night, working on trying to figure this one out. I assume I'm missing something really obvious, since I've had no problem doing everything else in the class. Any help, at all, would be greatly appreciated. I just need to get this finished so I don't get a zero, and I can understand what I'm missing... Thanks... I hate to ask for help, as I usually figure these things out myself.. Last edited by admin II : 05-May-2008 at 04:21.
Reason: Changed [CODE] to [CPP]
|
|
#2
|
|||
|
|||
Re: C++ help...You just to format when you print to file.
I hope this help. |
|
#3
|
|||
|
|||
Re: C++ help...I recommend reading some tutorial about C++.
http://www.arachnoid.com/cpptutor/index.html Solution to your problem is in this page: http://www.arachnoid.com/cpptutor/student3.html |
|
#4
|
|||
|
|||
Re: C++ help...all i did is read from ur file by the way u need to leave one space after each data, i am not quite done yet but may be this will help u a little
CPP / C++ / C Code:
|
Recent GIDBlog
Observations of Iraq by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The