![]() |
|
#1
|
|||
|
|||
Problem - for loop inputGreetings, I am using Borland CBuilderX (on fedora) and was working on an initial program (newbie, also not finished with the sorting part cause it won't even accept data), but it won't take my input from within my for loop. I was wondering if anyone has any knowledge as to why it won't work? the code looks right to me...
------------------------------------------------------------------------- CPP / C++ / C Code:
Last edited by Garth Farley : 06-Mar-2004 at 09:51.
Reason: Please enclose c code in [c] & [/c] for highlighting
|
|
#2
|
||||
|
||||
|
Hi st8tic1. (what a strange name!)
It is your for loop constructs. A for loop has three entries in this order:
So instead of: CPP / C++ / C Code:
You for loops should look like: CPP / C++ / C Code:
Hope this helps. d |
Recent GIDBlog
Writing a book by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Need Help on checking user input | hihellochao | C Programming Language | 5 | 27-Feb-2004 14:30 |
| problem with C code | belludandy | C Programming Language | 1 | 26-Jan-2004 22:28 |
| a C input question.. | tmike | C Programming Language | 2 | 19-Sep-2003 03:39 |
| a C input question | tmike | C Programming Language | 1 | 16-Sep-2003 03:31 |
| Script needed for letting user input a few days of data for tracking and analysis. | tradertt | MySQL / PHP Forum | 3 | 06-Mar-2003 03:54 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The