![]() |
|
#1
|
|||
|
|||
problem with vectorssee this
CPP / C++ / C Code:
Now the output is 0123 coz the loop is stoping when it = A.end() can anyone please tell me how I can get 01234 |
|
#2
|
|||
|
|||
|
Quote:
There's nothing obviously wrong with your code. (When the iterator is equal to A.end(), it is past the last item, so the logic is OK.) The only thing I can think of is that you don't flush the output buffer. Sometimes it makes a difference, depending on what else your program does. Here is a complete program; run it and tell me if you see any difference: CPP / C++ / C Code:
My output: Quote:
Regards, Dave |
Recent GIDBlog
Halfway done! by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Please help! Insert into database problem | robsmith | MySQL / PHP Forum | 1 | 24-Apr-2005 03:44 |
| Need advice on a disturbing problem | JUNK KED | Open Discussion Forum | 6 | 31-Mar-2005 13:51 |
| Another FX 5600 problem (but with details that might shed light on this) | BobDaDuck | Computer Hardware Forum | 2 | 16-Apr-2004 07:53 |
| Declaring a vector of vectors? | Lethal411 | C++ Forum | 2 | 20-Mar-2004 09:02 |
| problem with php5 cgi installation | fab13 | Apache Web Server Forum | 3 | 19-Nov-2003 09:11 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The