Click here to Skip to main content
15,902,492 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionFile length macro??? Pin
PJ Arends14-Feb-04 13:28
professionalPJ Arends14-Feb-04 13:28 
AnswerRe: File length macro??? Pin
Michael Dunn14-Feb-04 14:10
sitebuilderMichael Dunn14-Feb-04 14:10 
GeneralRe: File length macro??? Pin
PJ Arends14-Feb-04 14:15
professionalPJ Arends14-Feb-04 14:15 
GeneralLNK1181...'shlwapi. newbie Pin
~toki14-Feb-04 10:54
~toki14-Feb-04 10:54 
GeneralRe: LNK1181...'shlwapi. newbie Pin
Tim Smith14-Feb-04 12:59
Tim Smith14-Feb-04 12:59 
GeneralRe: LNK1181...'shlwapi. newbie Pin
Michael Dunn14-Feb-04 14:12
sitebuilderMichael Dunn14-Feb-04 14:12 
Generalinfinite loop Pin
4ize14-Feb-04 10:50
4ize14-Feb-04 10:50 
GeneralRe: infinite loop Pin
Michael P Butler15-Feb-04 1:43
Michael P Butler15-Feb-04 1:43 
Which version of VC++ are you using. I'm assuming VC6.

After a quick glance, I think your problem is

for (int i = 0; i <= numberOfResponses; i++) <br />
{ <br />
int c, i, v; <br />
cin >> c; <br />
cin >> i; <br />
cin >> v; <br />
election MyElection(c,i,v); <br />
} 


You are redeclaring the variable i and then setting it to a different value. I think this may be throwing off your loop.

VS.NET wouldn't let the code compile, but VS6 would.

Michael

But you know when the truth is told,
That you can get what you want or you can just get old,
Your're going to kick off before you even get halfway through.
When will you realise... Vienna waits for you?
- "The Stranger," Billy Joel
GeneralRe: infinite loop Pin
Robert A. T. Káldy16-Feb-04 12:23
Robert A. T. Káldy16-Feb-04 12:23 
GeneralGraphic interface Pin
Anonymous14-Feb-04 10:30
Anonymous14-Feb-04 10:30 
GeneralRe: Graphic interface Pin
Antti Keskinen14-Feb-04 10:43
Antti Keskinen14-Feb-04 10:43 
GeneralRe: Graphic interface Pin
Andrew Walker14-Feb-04 20:17
Andrew Walker14-Feb-04 20:17 
GeneralBug!!! Pin
mebraun14-Feb-04 9:47
mebraun14-Feb-04 9:47 
GeneralRe: Bug!!! Pin
Shog914-Feb-04 10:29
sitebuilderShog914-Feb-04 10:29 
Generaladditional details Pin
mebraun14-Feb-04 12:58
mebraun14-Feb-04 12:58 
GeneralHTML text from VC++ app Pin
progman14-Feb-04 9:39
progman14-Feb-04 9:39 
GeneralRichedit redisplay problem Pin
Sara Burns14-Feb-04 9:12
Sara Burns14-Feb-04 9:12 
GeneralDisabling menu selection Pin
krugger14-Feb-04 9:00
krugger14-Feb-04 9:00 
GeneralRe: Disabling menu selection Pin
Michael P Butler15-Feb-04 1:48
Michael P Butler15-Feb-04 1:48 
GeneralDialog closes on Escape Pin
krugger14-Feb-04 8:58
krugger14-Feb-04 8:58 
GeneralRe: Dialog closes on Escape Pin
Michael Dunn14-Feb-04 9:23
sitebuilderMichael Dunn14-Feb-04 9:23 
GeneralRe: Dialog closes on Escape Pin
alex.barylski14-Feb-04 10:56
alex.barylski14-Feb-04 10:56 
GeneralProblem with MFC minimize box Pin
Dev57814-Feb-04 7:07
Dev57814-Feb-04 7:07 
GeneralRe: Problem with MFC minimize box Pin
Antti Keskinen14-Feb-04 7:49
Antti Keskinen14-Feb-04 7:49 
Generalopening a SDL within MFC application Pin
Anonymous14-Feb-04 5:09
Anonymous14-Feb-04 5:09 

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.