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

C / C++ / MFC

 
GeneralRe: C++ Thousand Separators Pin
David Crow1-Apr-10 16:26
David Crow1-Apr-10 16:26 
GeneralRe: C++ Thousand Separators Pin
Joe Woodbury1-Apr-10 16:02
professionalJoe Woodbury1-Apr-10 16:02 
GeneralRe: C++ Thousand Separators Pin
awesometrickycool1-Apr-10 16:17
awesometrickycool1-Apr-10 16:17 
GeneralRe: C++ Thousand Separators Pin
David Crow1-Apr-10 16:29
David Crow1-Apr-10 16:29 
GeneralRe: C++ Thousand Separators Pin
Joe Woodbury1-Apr-10 17:05
professionalJoe Woodbury1-Apr-10 17:05 
GeneralRe: C++ Thousand Separators Pin
awesometrickycool3-Apr-10 12:48
awesometrickycool3-Apr-10 12:48 
GeneralRe: C++ Thousand Separators Pin
awesometrickycool3-Apr-10 12:49
awesometrickycool3-Apr-10 12:49 
GeneralRe: C++ Thousand Separators Pin
Joe Woodbury3-Apr-10 13:04
professionalJoe Woodbury3-Apr-10 13:04 
Just scanned over the code. With some work, you could probably get the entire algorithm smaller, but the size would be negligible (and since you've bloated it up using string and cout, why bother Smile | :) ) Joking aside, this will result in fairly small, fast assembly.

For the exponential commas, write another function! If you find a way to combine them, that's great, but not worth worrying about.

(A big mistake a lot of programmer's make is thinking there is an all-in-one algorithm to solutions. The irony is that multiple, simple, algorithms are usually faster, easier to debug and may ultimately even be smaller. At the very least, writing things first as multiple, simple algorithms may help you see how to make a more complex algorithm that does more.)
GeneralRe: C++ Thousand Separators Pin
awesometrickycool3-Apr-10 13:30
awesometrickycool3-Apr-10 13:30 
GeneralRe: C++ Thousand Separators Pin
Joe Woodbury3-Apr-10 15:06
professionalJoe Woodbury3-Apr-10 15:06 
QuestionProblem with glut when linking statically Pin
jocasa1-Apr-10 2:25
jocasa1-Apr-10 2:25 
QuestionRe: Problem with glut when linking statically Pin
CPallini1-Apr-10 2:41
mveCPallini1-Apr-10 2:41 
AnswerRe: Problem with glut when linking statically Pin
jocasa1-Apr-10 2:51
jocasa1-Apr-10 2:51 
GeneralRe: Problem with glut when linking statically Pin
CPallini1-Apr-10 2:58
mveCPallini1-Apr-10 2:58 
GeneralRe: Problem with glut when linking statically Pin
jocasa1-Apr-10 3:00
jocasa1-Apr-10 3:00 
GeneralRe: Problem with glut when linking statically Pin
jocasa1-Apr-10 3:22
jocasa1-Apr-10 3:22 
GeneralRe: Problem with glut when linking statically Pin
LunaticFringe1-Apr-10 3:43
LunaticFringe1-Apr-10 3:43 
GeneralRe: Problem with glut when linking statically Pin
jocasa1-Apr-10 4:12
jocasa1-Apr-10 4:12 
GeneralRe: Problem with glut when linking statically Pin
LunaticFringe1-Apr-10 4:24
LunaticFringe1-Apr-10 4:24 
GeneralRe: Problem with glut when linking statically Pin
CPallini1-Apr-10 6:16
mveCPallini1-Apr-10 6:16 
GeneralRe: Problem with glut when linking statically Pin
Moak1-Apr-10 6:26
Moak1-Apr-10 6:26 
GeneralRe: Problem with glut when linking statically Pin
LunaticFringe1-Apr-10 8:11
LunaticFringe1-Apr-10 8:11 
GeneralRe: Problem with glut when linking statically Pin
CPallini1-Apr-10 9:19
mveCPallini1-Apr-10 9:19 
GeneralRe: Problem with glut when linking statically Pin
jocasa1-Apr-10 9:41
jocasa1-Apr-10 9:41 
Questioncsv file problem Pin
Member 5903101-Apr-10 2:12
Member 5903101-Apr-10 2:12 

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.