Forum: C++ Aug 31st, 2008 |
| Replies: 2 Views: 2,321 you cannot dynamically change the size of an array, you can only create a new one and copy the old array, but i gues you could use poiters for you array holder like Ancient Dragon suggested, but... |
Forum: C++ Aug 31st, 2008 |
| Replies: 2 Views: 419 you should consider using a modulus operator for several reasons.
In you code, when you divide by rempay, unless the result is a value greater than 1, the value you get for rempay will not give... |
Forum: C++ Aug 30th, 2008 |
| Replies: 4 Views: 573 You need to think about what you want to use C++ for. I personally am interested in teh game development aspect of C++, but there are many other route C++ can tke you. so once you've made up you mind... |
Forum: C++ Aug 30th, 2008 |
| Replies: 13 Views: 2,178 you code doesnt make sense so i have to ask, "Are you new to programming?", "And is this the full source code"
I'm only asking because theres some serious flaws in you code. first you have variables... |
Forum: C++ Aug 30th, 2008 |
| Replies: 5 Views: 1,871 In both your 'for' loops your condition needs 'a' to be smaller than 'b', so before your 'for' loop but after your call for user input 'cin', you need a condition which checks the values entered, and... |
Forum: C++ Aug 30th, 2008 |
| Replies: 0 Views: 3,547 I'm fairly new to C++, I've only been learning it for 4 months now and I've been having problems with a template class file that i was creating for my project i kept getting the error
the code... |