Forum: C++ Feb 3rd, 2005 |
| Replies: 3 Views: 25,437 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 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 Ya, you need a
current_ptr = current_ptr->next;
in there... |
Forum: C++ Nov 20th, 2004 |
| Replies: 9 Views: 11,827 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 Views: 11,827 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 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>... |