Click here to Skip to main content
15,920,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Current User Pin
Gary R. Wheeler27-Nov-04 2:18
Gary R. Wheeler27-Nov-04 2:18 
GeneralRe: Current User Pin
david_gilmour27-Nov-04 2:35
david_gilmour27-Nov-04 2:35 
GeneralRe: Current User Pin
BaldwinMartin27-Nov-04 9:46
BaldwinMartin27-Nov-04 9:46 
GeneralRe: Current User Pin
BaldwinMartin27-Nov-04 9:44
BaldwinMartin27-Nov-04 9:44 
GeneralDesign Skin for Program Pin
BRIMID26-Nov-04 12:46
BRIMID26-Nov-04 12:46 
GeneralRe: Design Skin for Program Pin
John R. Shaw26-Nov-04 13:08
John R. Shaw26-Nov-04 13:08 
GeneralThousands Separator Input Pin
BRIMID26-Nov-04 12:44
BRIMID26-Nov-04 12:44 
GeneralRe: Thousands Separator Input Pin
PJ Arends26-Nov-04 14:23
professionalPJ Arends26-Nov-04 14:23 
Take the input as a string, then strip out the comma and then use atoi to convert the string to an integer.
string input;
int number;
cin >> input;
int pos = input.find(',');
while (pos != -1)
{
    input.replace(pos, 1, "");
    pos = input.find(',');
}

number = atoi(input.c_str());

cout << number << endl;




"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
QuestionPassing a function as a argument to a function? Pin
FocusedWolf26-Nov-04 10:40
FocusedWolf26-Nov-04 10:40 
AnswerRe: Passing a function as a argument to a function? Pin
Chris Losinger26-Nov-04 12:13
professionalChris Losinger26-Nov-04 12:13 
GeneralRe: Passing a function as a argument to a function? Pin
FocusedWolf26-Nov-04 12:20
FocusedWolf26-Nov-04 12:20 
GeneralRe: Passing a function as a argument to a function? Pin
FocusedWolf26-Nov-04 12:35
FocusedWolf26-Nov-04 12:35 
GeneralRe: Passing a function as a argument to a function? Pin
Chris Losinger26-Nov-04 17:58
professionalChris Losinger26-Nov-04 17:58 
GeneralRe: Passing a function as a argument to a function? Pin
FocusedWolf27-Nov-04 5:35
FocusedWolf27-Nov-04 5:35 
GeneralRe: Passing a function as a argument to a function? Pin
Michael Dunn27-Nov-04 8:38
sitebuilderMichael Dunn27-Nov-04 8:38 
GeneralHelp with formatting a CString Pin
Chris Meech26-Nov-04 9:05
Chris Meech26-Nov-04 9:05 
GeneralRe: Help with formatting a CString Pin
PJ Arends26-Nov-04 10:29
professionalPJ Arends26-Nov-04 10:29 
GeneralRe: Help with formatting a CString Pin
Jack Puppy26-Nov-04 13:14
Jack Puppy26-Nov-04 13:14 
GeneralRe: Help with formatting a CString Pin
Chris Meech29-Nov-04 3:32
Chris Meech29-Nov-04 3:32 
GeneralRe: Help with formatting a CString Pin
Gary R. Wheeler27-Nov-04 2:30
Gary R. Wheeler27-Nov-04 2:30 
GeneralRe: Help with formatting a CString Pin
Chris Meech29-Nov-04 3:38
Chris Meech29-Nov-04 3:38 
GeneralRe: Help with formatting a CString Pin
Gary R. Wheeler29-Nov-04 15:12
Gary R. Wheeler29-Nov-04 15:12 
GeneralRe: Help with formatting a CString Pin
Chris Meech30-Nov-04 3:18
Chris Meech30-Nov-04 3:18 
Generaladd line number indicator in MFC document project Pin
zhngmm26-Nov-04 8:45
zhngmm26-Nov-04 8:45 
GeneralRe: add line number indicator in MFC document project Pin
PJ Arends26-Nov-04 10:31
professionalPJ Arends26-Nov-04 10:31 

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.