![]() |
|
#1
|
|||
|
|||
Why error?Anyone know why cant erase that vector???
if(v[x]==vecfileword[y]) vecfileword.erase(y); How to compare two vector and if the same vector then erase it..How?? my vector is string //compareIndex(); for(int x=0,y=0;0<v.size(x);x++) { while(0<vecfileword.size(y)) { if(v[x]==vecfileword[y]) vecfileword.erase(y); y++; } } Correct??? But still got error Can You show me how to use pop_back as well in this code? |
Recent GIDBlog
US Elections and the ?Voter?s Responsibility? by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in | ukrspp21 | MySQL / PHP Forum | 31 | 04-Jul-2006 22:41 |
| Implicit Declaration error | mike3340 | C++ Forum | 1 | 16-Dec-2003 09:12 |
| error during program | rjd72285 | C++ Forum | 0 | 11-Nov-2003 19:49 |
| [script] E-mail webmaster error page | BobbyDouglas | PHP Code Library | 0 | 19-Aug-2003 21:10 |
| CD burner, focus or tracking error | ShingoDrrazz | Computer Hardware Forum | 1 | 09-Aug-2003 17:26 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The