Search:

Type: Posts; User: vale

Search: Search took 0.01 seconds.

  1. Thread: Arrrrrggghhh

    by vale
    Replies
    17
    Views
    1,648

    As I recall, and int can only contain values...

    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...
  2. Thread: Good Books?

    by vale
    Replies
    8
    Views
    1,667

    If you know C then I strongly recommend Teach...

    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...
  3. Replies
    5
    Views
    3,052

    forest

    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......
  4. Thread: Print Function

    by vale
    Replies
    4
    Views
    1,432

    Hm... I'm just learning C++ myself but I would...

    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...
  5. Thread: question

    by vale
    Replies
    6
    Views
    905

    Maggie, Your instructor is asking you very...

    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...
  6. Replies
    11
    Views
    1,524

    Grim, your question looks familiar. Oh yeah, I've...

    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...
  7. Thread: Riddle

    by vale
    Replies
    2
    Views
    1,489

    The value of P remains unchanged, because the...

    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...
  8. Replies
    1
    Views
    2,223

    Symbolic constants are used to make code clearer....

    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,...
  9. Replies
    4
    Views
    3,064

    re:perl

    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...
  10. Replies
    2
    Views
    1,313

    Hyaline, It would help if you posted the code...

    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...
  11. Replies
    1
    Views
    1,920

    dynamic allocation question

    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...
Results 1 to 11 of 11