As I recall, and int can only contain values ranging from -32000 to +32000 (or thereabouts). This statement:
int C=300000000;
is assigning a very large number to a small area.
I don't have...
Type: Posts; User: vale
As I recall, and int can only contain values ranging from -32000 to +32000 (or thereabouts). This statement:
int C=300000000;
is assigning a very large number to a small area.
I don't have...
If you know C then I strongly recommend Teach Yourself C++ by Herb Schildt. The 3rd Ed. of this book (and I assume the other editions as well) is geared toward people who already know C. As such, he...
You'd probably have better luck with this thread in the games section, but...
My 2 cents: if energy level can go into the billions, then the difference between 406 and 719 is really trivial......
Hm...
I'm just learning C++ myself but I would try the following:
ostream &Print( ostream &fout1);
If you return the stream, you can overload the function for more than one item. As I...
Maggie,
Your instructor is asking you very good, basic questions to get you familiar with loops and truth tests.
Look at it this way (and keep in mind Thantos's post as you read this):
If...
Grim, your question looks familiar. Oh yeah, I've asked it before.
I just wanted to add something as clarification. When you delete some memory, the memory may not necessarily be cleaned as soon...
The value of P remains unchanged, because the code segment in braces in never executed due to this statement:
while (!Q)
That's the way I see it, anyway. Let me know if you need more help...
Symbolic constants are used to make code clearer. Also, they make it easier to change the code. Example:
#define STATE_TAX 8.05
now, in your code, whenever the compiler sees the word STATE_TAX,...
To answer your question about Perl... it's a nifty language, very good for processing text, as your friend told you. It's also easy to learn, especially for someone who knows another language. Just...
Hyaline,
It would help if you posted the code you have. Or, if you don't have any code, then pseudocode/logic.
I'll try to answer your question as is, but (as a disclaimer) I'm horribly tired...
I've got some questions about dynamically allocating an array. I've got the allocation to work, but I was wondering why the following works:
(this constructor has been edited so it only shows the...