Click here to Skip to main content
15,921,530 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Problem with NTGraph Pin
Semion_N8-Jul-06 8:17
Semion_N8-Jul-06 8:17 
GeneralRe: Problem with NTGraph Pin
Justin Tay8-Jul-06 9:03
Justin Tay8-Jul-06 9:03 
GeneralRe: Problem with NTGraph Pin
Semion_N8-Jul-06 9:25
Semion_N8-Jul-06 9:25 
GeneralRe: Problem with NTGraph Pin
Justin Tay8-Jul-06 9:32
Justin Tay8-Jul-06 9:32 
GeneralRe: Problem with NTGraph Pin
Semion_N8-Jul-06 9:44
Semion_N8-Jul-06 9:44 
QuestionExporting from a DLL Pin
Jay037-Jul-06 5:46
Jay037-Jul-06 5:46 
AnswerRe: Exporting from a DLL Pin
Zac Howland7-Jul-06 6:18
Zac Howland7-Jul-06 6:18 
QuestionUser Input Pin
Harold_Wishes7-Jul-06 5:26
Harold_Wishes7-Jul-06 5:26 
Hello,

I need some help with some data validation as I'm not much of a programmer. I have created some string and character variables in a simple program I am writing for my company. Specifically, the program is suppose to accept user input from the keyboard and check to verify if the user enters data or enters nothing.

At the moment, I would like to give the user the option to press the enter key if they choose to skip data entry for a particular variable and go on to key in data for the next variable using the getline() input function.

Right now, the program forces the user to enter data for all variables. Simply hitting the enter key will not allow the user to move on in the program. The prompt just sits there waiting for your input for the current variable. Is there a way to force the program to move ahead in the program?

My next question is how to represent NULL for data that was never entered.

Help is much appreciated.

Thanks, HRW
AnswerRe: User Input Pin
Zac Howland7-Jul-06 5:31
Zac Howland7-Jul-06 5:31 
GeneralRe: User Input Pin
Harold_Wishes7-Jul-06 5:51
Harold_Wishes7-Jul-06 5:51 
GeneralRe: User Input Pin
Zac Howland7-Jul-06 6:04
Zac Howland7-Jul-06 6:04 
GeneralRe: User Input Pin
Harold_Wishes7-Jul-06 7:06
Harold_Wishes7-Jul-06 7:06 
GeneralRe: User Input Pin
Zac Howland7-Jul-06 7:33
Zac Howland7-Jul-06 7:33 
GeneralRe: User Input Pin
Harold_Wishes7-Jul-06 10:08
Harold_Wishes7-Jul-06 10:08 
GeneralRe: User Input [modified] Pin
Zac Howland7-Jul-06 10:35
Zac Howland7-Jul-06 10:35 
GeneralRe: User Input [modified] Pin
Harold_Wishes8-Jul-06 17:36
Harold_Wishes8-Jul-06 17:36 
GeneralRe: User Input Pin
Zac Howland9-Jul-06 14:28
Zac Howland9-Jul-06 14:28 
QuestionSimple MAPI Outlook outbox problem Pin
chilituna7-Jul-06 4:45
chilituna7-Jul-06 4:45 
Questionostream operator link error Pin
mosu'7-Jul-06 4:33
mosu'7-Jul-06 4:33 
AnswerRe: ostream operator link error [modified] Pin
Viorel.7-Jul-06 4:45
Viorel.7-Jul-06 4:45 
AnswerRe: ostream operator link error Pin
Zac Howland7-Jul-06 5:11
Zac Howland7-Jul-06 5:11 
QuestionRun an application inside another one Pin
xtof737-Jul-06 4:03
xtof737-Jul-06 4:03 
AnswerRe: Run an application inside another one Pin
Sarath C7-Jul-06 4:25
Sarath C7-Jul-06 4:25 
GeneralRe: Run an application inside another one Pin
Zac Howland7-Jul-06 4:30
Zac Howland7-Jul-06 4:30 
GeneralRe: Run an application inside another one Pin
Sarath C7-Jul-06 4:39
Sarath C7-Jul-06 4:39 

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.