Search Results

Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: Chainsaw ; Forum: C++ and child forums
Forum: C++ Feb 3rd, 2005
Replies: 3
Views: 25,437
Posted By Chainsaw
If it were me, I'd use sprintf() or one of its variants (_snprintf, say).

char display[30];
_snprintf( display, sizeof(display), "%.2f", empMoney );

And forget about scaleing it manually.
Forum: C++ Jan 4th, 2005
Replies: 19
Views: 6,472
Posted By Chainsaw
In C/C++, another valuable use of pointers is to point to an array of charactors. C doesn't have a string type, and instead you can use an array of char like this:

char name[20];

but to do any...
Forum: C++ Dec 18th, 2004
Replies: 3
Views: 3,033
Posted By Chainsaw
Ya, you need a

current_ptr = current_ptr->next;

in there...
Forum: C++ Nov 20th, 2004
Replies: 9
Solved: Tower Of Hanoi
Views: 11,827
Posted By Chainsaw
Hey! That's what I said! I wasn't trying to be rude, just helpful!

Google is a wonderful resource for algorithms.
Forum: C++ Nov 19th, 2004
Replies: 9
Solved: Tower Of Hanoi
Views: 11,827
Posted By Chainsaw
I went into Google and typed

algorithm analysis of Tower of Hanoi

and it came right up with a bunch of interesting sites.
Forum: C++ Nov 9th, 2004
Replies: 2
Views: 2,150
Posted By Chainsaw
GetWindowText, THEN do your calculation, THEN SetWindowText. Your calculation is not operating on anything.

GetWindowText(z); // get the result from the source box
<do math with z>...
Showing results 1 to 6 of 6

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC