Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionA joke on C Pin
Edward10261-Apr-10 7:57
Edward10261-Apr-10 7:57 
AnswerRe: A joke on C Pin
CPallini1-Apr-10 8:10
mveCPallini1-Apr-10 8:10 
QuestionHow to do function with timout & getting message properly ? Pin
oppstp1-Apr-10 7:42
oppstp1-Apr-10 7:42 
QuestionRe: How to do function with timout & getting message properly ? Pin
David Crow1-Apr-10 8:15
David Crow1-Apr-10 8:15 
AnswerRe: How to do function with timout & getting message properly ? Pin
oppstp1-Apr-10 15:06
oppstp1-Apr-10 15:06 
QuestionPicture Control with scroll bars. PinPopular
ashwath19791-Apr-10 5:02
ashwath19791-Apr-10 5:02 
QuestionC++ Thousand Separators Pin
awesometrickycool1-Apr-10 2:37
awesometrickycool1-Apr-10 2:37 
AnswerRe: C++ Thousand Separators Pin
Garth J Lancaster1-Apr-10 2:56
professionalGarth J Lancaster1-Apr-10 2:56 
QuestionRe: C++ Thousand Separators Pin
David Crow1-Apr-10 3:03
David Crow1-Apr-10 3:03 
AnswerRe: C++ Thousand Separators Pin
Garth J Lancaster1-Apr-10 3:06
professionalGarth J Lancaster1-Apr-10 3:06 
AnswerRe: C++ Thousand Separators Pin
Joe Woodbury1-Apr-10 7:15
professionalJoe Woodbury1-Apr-10 7:15 
GeneralRe: C++ Thousand Separators Pin
awesometrickycool1-Apr-10 15:08
awesometrickycool1-Apr-10 15:08 
QuestionRe: C++ Thousand Separators Pin
David Crow1-Apr-10 15:33
David Crow1-Apr-10 15:33 
AnswerRe: C++ Thousand Separators Pin
awesometrickycool1-Apr-10 15:49
awesometrickycool1-Apr-10 15:49 
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 

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.