Click here to Skip to main content
15,891,136 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: OnInitDialog query Pin
20-Jun-05 10:05
suss20-Jun-05 10:05 
GeneralRe: OnInitDialog query Pin
FlyingTinman20-Jun-05 10:10
FlyingTinman20-Jun-05 10:10 
GeneralRe: OnInitDialog query Pin
Andrew Kirillov20-Jun-05 10:38
Andrew Kirillov20-Jun-05 10:38 
GeneralRe: OnInitDialog query Pin
Trollslayer20-Jun-05 13:14
mentorTrollslayer20-Jun-05 13:14 
Questionsimple keyboard input ? Pin
bitsNbites20-Jun-05 9:04
bitsNbites20-Jun-05 9:04 
AnswerRe: simple keyboard input ? Pin
Alexander M.,20-Jun-05 9:25
Alexander M.,20-Jun-05 9:25 
AnswerRe: simple keyboard input ? Pin
David Crow20-Jun-05 9:45
David Crow20-Jun-05 9:45 
AnswerRe: simple keyboard input ? Pin
Andrew Walker20-Jun-05 14:03
Andrew Walker20-Jun-05 14:03 
Use a C++ type which is dynamically expandable,

std::string s;
std::cin >> s;


Which will be fine unless you have whitespace in the name, and then you would need something like (this would have been a problem with the exising code as well):

std::string s;
std::getline(cin,s);


If you wanted to get really fancy you could also use an istream_iterator<string>, but for examples this simple I don't think it really buys you anything.




AnswerRe: simple keyboard input ? Pin
ng kok chuan20-Jun-05 17:25
ng kok chuan20-Jun-05 17:25 
GeneralRe: simple keyboard input ? Pin
bitsNbites20-Jun-05 18:06
bitsNbites20-Jun-05 18:06 
GeneralRe: simple keyboard input ? Pin
ng kok chuan20-Jun-05 21:33
ng kok chuan20-Jun-05 21:33 
GeneralRe: simple keyboard input ? Pin
bitsNbites21-Jun-05 4:59
bitsNbites21-Jun-05 4:59 
GeneralRe: simple keyboard input ? Pin
ng kok chuan21-Jun-05 16:40
ng kok chuan21-Jun-05 16:40 
GeneralRe: simple keyboard input ? Pin
bitsNbites22-Jun-05 4:13
bitsNbites22-Jun-05 4:13 
GeneralRe: simple keyboard input ? Pin
David Crow21-Jun-05 5:27
David Crow21-Jun-05 5:27 
GeneralRe: simple keyboard input ? Pin
ng kok chuan21-Jun-05 16:32
ng kok chuan21-Jun-05 16:32 
GeneralMKS command line Pin
lynchspawn20-Jun-05 8:36
lynchspawn20-Jun-05 8:36 
GeneralRe: MKS command line Pin
Maverick14310-Jul-12 3:17
Maverick14310-Jul-12 3:17 
GeneralColored Combo Box Pin
sergeyv200220-Jun-05 8:36
sergeyv200220-Jun-05 8:36 
GeneralRe: Colored Combo Box Pin
David Crow20-Jun-05 9:47
David Crow20-Jun-05 9:47 
GeneralRe: Colored Combo Box Pin
sergeyv200220-Jun-05 10:40
sergeyv200220-Jun-05 10:40 
GeneralRe: Colored Combo Box Pin
David Crow20-Jun-05 10:54
David Crow20-Jun-05 10:54 
GeneralBinary Decision Diagram Pin
Member 142769220-Jun-05 7:26
Member 142769220-Jun-05 7:26 
GeneralRe: Binary Decision Diagram Pin
Toni7820-Jun-05 15:49
Toni7820-Jun-05 15:49 
GeneralRe: Binary Decision Diagram Pin
Member 142769220-Jun-05 18:46
Member 142769220-Jun-05 18:46 

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.