GIDForums  

Go Back   GIDForums > Computer Programming Forums > C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 18-Jan-2004, 04:25
eye eye is offline
New Member
 
Join Date: Jan 2004
Posts: 3
eye is on a distinguished road

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 GIDBlogUS Elections and the ?Voter?s Responsibility? by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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

All times are GMT -6. The time now is 05:21.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.