Click here to Skip to main content
15,911,786 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: strcmp for Last five characters Pin
Hristo-Bojilov25-May-10 8:04
Hristo-Bojilov25-May-10 8:04 
GeneralRe: strcmp for Last five characters Pin
David Crow25-May-10 8:22
David Crow25-May-10 8:22 
GeneralRe: strcmp for Last five characters Pin
asadullah ansari25-May-10 16:35
asadullah ansari25-May-10 16:35 
QuestionPlease Explain One Instruction Pin
computerpublic24-May-10 17:58
computerpublic24-May-10 17:58 
AnswerRe: Please Explain One Instruction Pin
Stephen Hewitt24-May-10 18:03
Stephen Hewitt24-May-10 18:03 
AnswerRe: Please Explain One Instruction Pin
CPallini24-May-10 20:45
mveCPallini24-May-10 20:45 
AnswerRe: Please Explain One Instruction Pin
ThatsAlok25-May-10 1:52
ThatsAlok25-May-10 1:52 
QuestionObject Oriented Problem. Pin
RobNO24-May-10 13:49
professionalRobNO24-May-10 13:49 
AnswerRe: Object Oriented Problem. Pin
Stephen Hewitt24-May-10 14:08
Stephen Hewitt24-May-10 14:08 
GeneralRe: Object Oriented Problem. Pin
RobNO24-May-10 14:11
professionalRobNO24-May-10 14:11 
JokeRe: Object Oriented Problem. Pin
Peter_in_278024-May-10 14:13
professionalPeter_in_278024-May-10 14:13 
GeneralRe: Object Oriented Problem. Pin
Stephen Hewitt24-May-10 14:14
Stephen Hewitt24-May-10 14:14 
GeneralRe: Object Oriented Problem. Pin
ThatsAlok25-May-10 1:53
ThatsAlok25-May-10 1:53 
AnswerRe: Object Oriented Problem. Pin
Peter_in_278024-May-10 14:12
professionalPeter_in_278024-May-10 14:12 
AnswerRe: Object Oriented Problem. Pin
Sarath C24-May-10 14:14
Sarath C24-May-10 14:14 
QuestionNot able to drag the pane when creating a splitter in MDI Applicaton. Pin
janaswamy uday24-May-10 5:44
janaswamy uday24-May-10 5:44 
Questionusing std::find in while loop Pin
b-rad31124-May-10 5:09
b-rad31124-May-10 5:09 
Hello,

Can anyone tell me why the "index" variable isn't changing in my while loop, despite the fact that the vector "vec" has several "0." values stored in it? My goal is to find the index of each zero value in the vector "vec". The very first value calculated for the "index" variable is correct, but for the following loops in the while statement, it never updates from this value.

Thanks!

vector <long double>::iterator varying_start;
varying_start=vec.begin();
vector <long double>::iterator start;
start=vec.begin();



while(true)
{
	varying_start= find(varying_start,vec.end() , 0.);
	int index=varying_start-start;
}

AnswerRe: using std::find in while loop Pin
josda100024-May-10 5:15
josda100024-May-10 5:15 
GeneralRe: using std::find in while loop Pin
b-rad31124-May-10 5:19
b-rad31124-May-10 5:19 
GeneralRe: using std::find in while loop Pin
josda100024-May-10 5:27
josda100024-May-10 5:27 
GeneralRe: using std::find in while loop Pin
b-rad31124-May-10 5:28
b-rad31124-May-10 5:28 
AnswerRe: using std::find in while loop Pin
David Crow24-May-10 5:28
David Crow24-May-10 5:28 
GeneralRe: using std::find in while loop Pin
b-rad31124-May-10 5:45
b-rad31124-May-10 5:45 
AnswerRe: using std::find in while loop Pin
Richard MacCutchan24-May-10 5:33
mveRichard MacCutchan24-May-10 5:33 
AnswerRe: using std::find in while loop Pin
Aescleal24-May-10 6:01
Aescleal24-May-10 6:01 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.