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

C / C++ / MFC

 
QuestionStruct memory allocation question Pin
thespiff30-Oct-07 10:34
thespiff30-Oct-07 10:34 
AnswerRe: Struct memory allocation question Pin
Mark Salsbery30-Oct-07 10:45
Mark Salsbery30-Oct-07 10:45 
GeneralRe: Struct memory allocation question Pin
led mike30-Oct-07 11:10
led mike30-Oct-07 11:10 
GeneralRe: Struct memory allocation question Pin
Mark Salsbery30-Oct-07 11:32
Mark Salsbery30-Oct-07 11:32 
AnswerRe: Struct memory allocation question Pin
John R. Shaw30-Oct-07 15:09
John R. Shaw30-Oct-07 15:09 
AnswerRe: Struct memory allocation question Pin
Neo Andreson30-Oct-07 20:16
Neo Andreson30-Oct-07 20:16 
GeneralRe: Struct memory allocation question Pin
Mark Salsbery31-Oct-07 6:02
Mark Salsbery31-Oct-07 6:02 
Questioncctype and If ( ) Pin
pourang30-Oct-07 9:30
pourang30-Oct-07 9:30 
Hi.

whenever you right a line of code which ask for an input you make sure that if the input doesn't match the variable's type the program prompt user ( " please enter a digit,..... " or ....) .

so righting 1000 lines of code asking for an input and writing 2000 controll functions to make the program stay running is not a shortcut if there is any.

So , is there any shortcut. for instance, can vi write a line of code in the beginning of program and make sure thatthe program prompt oss whenever the input's not matching?

Thanks

int life()
{
in a land with no bird, no spring. My first journey was a
return 0;
}

AnswerRe: cctype and If ( ) Pin
Mark Salsbery30-Oct-07 10:11
Mark Salsbery30-Oct-07 10:11 
GeneralRe: cctype and If ( ) Pin
pourang30-Oct-07 10:16
pourang30-Oct-07 10:16 
GeneralRe: cctype and If ( ) Pin
John R. Shaw30-Oct-07 16:19
John R. Shaw30-Oct-07 16:19 
Questionunexpected error [please help] Pin
sarojsigdel30-Oct-07 8:48
sarojsigdel30-Oct-07 8:48 
AnswerRe: unexpected error Pin
Mark Salsbery30-Oct-07 10:15
Mark Salsbery30-Oct-07 10:15 
GeneralRe: unexpected error Pin
sarojsigdel30-Oct-07 10:28
sarojsigdel30-Oct-07 10:28 
GeneralRe: unexpected error Pin
Mark Salsbery30-Oct-07 10:35
Mark Salsbery30-Oct-07 10:35 
GeneralRe: unexpected error Pin
sarojsigdel30-Oct-07 10:52
sarojsigdel30-Oct-07 10:52 
GeneralRe: unexpected error Pin
Mark Salsbery30-Oct-07 11:00
Mark Salsbery30-Oct-07 11:00 
QuestionMinimizing a Dialog Pin
69 Bay30-Oct-07 8:03
69 Bay30-Oct-07 8:03 
AnswerRe: Minimizing a Dialog Pin
Llasus30-Oct-07 14:07
Llasus30-Oct-07 14:07 
AnswerRe: Minimizing a Dialog Pin
Nishad S30-Oct-07 18:05
Nishad S30-Oct-07 18:05 
AnswerRe: Minimizing a Dialog Pin
Hamid_RT31-Oct-07 4:20
Hamid_RT31-Oct-07 4:20 
QuestionComments in Visual Studio 2005 Pro Pin
Like2Byte30-Oct-07 8:01
Like2Byte30-Oct-07 8:01 
QuestionHow to prevent direct execution of .msi? Pin
popopo30-Oct-07 7:47
popopo30-Oct-07 7:47 
QuestionCursor help: Pin
Hakan Bulut30-Oct-07 7:09
Hakan Bulut30-Oct-07 7:09 
QuestionRe: Cursor help: Pin
Mark Salsbery30-Oct-07 7:18
Mark Salsbery30-Oct-07 7:18 

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.