![]() |
|
#1
|
|||
|
|||
What's the reason for these errorsCPP / C++ / C Code:
errors-- Code:
Last edited by LuciWiz : 11-Feb-2009 at 11:56.
Reason: Please insert your C++ code between [cpp] & [/cpp] tags
|
|||
|
#2
|
|||
|
|||
Re: What's the reason for these errorsQuote:
This is trying todeclare itr to be an "int list<int>::iterator" data type. If you are going to have multiple starting values in the for statement, and they are not the same type, don't try to declare them in the for statement. You could do something like CPP / C++ / C Code:
(In general, I would probably put in a test to make sure the iterator doesn't go beyond the end of the list: CPP / C++ / C Code:
Regards, Dave |
Recent GIDBlog
Programming ebook direct download available by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| run script command on ns2.26 | newbie06 | Computer Software Forum - Linux | 65 | 19-Aug-2009 08:50 |
| Plz anyone help to fix the linking errors: | dathatreya | MS Visual C++ / MFC Forum | 0 | 03-Apr-2008 01:19 |
| Need urgent help. Nonsensical compile errors on test code (for game) | seasons | C++ Forum | 1 | 29-Nov-2007 13:41 |
| Compile Errors due to Default Parameters | jdbrine | C++ Forum | 1 | 17-Jun-2006 15:45 |
| Linker errors with multiple file progam | nkhambal | C Programming Language | 2 | 24-Apr-2005 03:37 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The