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

C / C++ / MFC

 
GeneralRe: To any Microsoft lurkers: MFC Enhancements? Pin
Joe Woodbury30-Sep-03 4:47
professionalJoe Woodbury30-Sep-03 4:47 
GeneralLinked List Question Pin
Abin29-Sep-03 14:15
Abin29-Sep-03 14:15 
GeneralRe: Linked List Question Pin
Navin29-Sep-03 14:42
Navin29-Sep-03 14:42 
GeneralRe: Linked List Question Pin
Dave Bryant29-Sep-03 15:15
Dave Bryant29-Sep-03 15:15 
QuestionHow about ctoolbar! simple! Pin
twing29-Sep-03 14:04
twing29-Sep-03 14:04 
AnswerRe: How about ctoolbar! simple! Pin
twing29-Sep-03 20:36
twing29-Sep-03 20:36 
GeneralCTRL+C and CTRL+V doesn't work on combox, placed on DialogBar Pin
SandeepN29-Sep-03 13:09
SandeepN29-Sep-03 13:09 
GeneralProblem when executing this code Pin
29-Sep-03 12:33
suss29-Sep-03 12:33 
Hi all. New here to coding kind of. Check out the following code.

#include "iostream.h"<br />
#include "cstdio.h"<br />
#include "cstring.h"<br />
<br />
int main()<br />
{<br />
     char str[80];<br />
     cout << "Enter a sentence: ";<br />
     gets (str)<br />
     cout << "\nYou entered: " << str<br />
<br />
     return 0;<br />
}


What it does is nothing, but prompts you to enter the string BEFORE it couts "Enter a sentence: ". Why would this be, cout is clearly supposed to be executed before the statement gets (str);.

How the heck does it get that out of what I coded. Wrong version of VC or something ? using MS VC 6.0. How can this be. I am banging my head against the wall. Mad | :mad: lol

Thank you much people.
GeneralRe: Problem when executing this code Pin
Paul Belikian29-Sep-03 13:03
Paul Belikian29-Sep-03 13:03 
GeneralRe: Problem when executing this code Pin
Tim Smith29-Sep-03 13:17
Tim Smith29-Sep-03 13:17 
GeneralRe: Problem when executing this code Pin
JT Anderson29-Sep-03 13:19
JT Anderson29-Sep-03 13:19 
GeneralHow bout this Pin
shawnsch29-Sep-03 13:38
shawnsch29-Sep-03 13:38 
GeneralRe: How bout this Pin
ZoogieZork29-Sep-03 14:35
ZoogieZork29-Sep-03 14:35 
GeneralRe: How bout this Pin
shawnsch29-Sep-03 17:41
shawnsch29-Sep-03 17:41 
GeneralRe: How bout this Pin
ZoogieZork29-Sep-03 18:50
ZoogieZork29-Sep-03 18:50 
GeneralShould be easy... Pin
RobJones29-Sep-03 11:26
RobJones29-Sep-03 11:26 
GeneralRe: Should be easy... Pin
Dave Bryant29-Sep-03 11:33
Dave Bryant29-Sep-03 11:33 
GeneralRe: Should be easy... Pin
RobJones29-Sep-03 11:55
RobJones29-Sep-03 11:55 
GeneralGetModuleFileName instance and registering app Pin
Raymond So29-Sep-03 9:15
Raymond So29-Sep-03 9:15 
GeneralRe: GetModuleFileName instance and registering app Pin
Dave Bryant29-Sep-03 10:59
Dave Bryant29-Sep-03 10:59 
GeneralRe: GetModuleFileName instance and registering app Pin
igor196029-Sep-03 12:58
igor196029-Sep-03 12:58 
GeneralRe: GetModuleFileName instance and registering app Pin
Michael Dunn29-Sep-03 16:26
sitebuilderMichael Dunn29-Sep-03 16:26 
GeneralTaskbar window button Pin
blade29-Sep-03 9:01
blade29-Sep-03 9:01 
GeneralExecuting an EXE from memory Pin
Larry Antram29-Sep-03 8:54
Larry Antram29-Sep-03 8:54 
GeneralRe: Executing an EXE from memory Pin
David Crow29-Sep-03 11:14
David Crow29-Sep-03 11:14 

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.