Search:

Type: Posts; User: jEssYcAt

Page 1 of 9 1 2 3 4

Search: Search took 0.02 seconds.

  1. Replies
    5
    Views
    1,453

    Well, if it isn't homework then you have all the...

    Well, if it isn't homework then you have all the time in the world to research the answers.

    Google for exceptions, destructor, stack unwinding, etc. and I'm sure you will find what you are looking...
  2. Another option would be to make them static...

    Another option would be to make them static member functions. You would call them as


    Coord c = World::RealToEffective(x,y);
    Coord d = World::EffectiveToReal(x,y);

    And they would be...
  3. Replies
    11
    Views
    4,555

    Based on that error message, the most likely way...

    Based on that error message, the most likely way to fix it is to re-think your design. But we can only guess if you don't show us any code.
  4. Replies
    8
    Views
    1,760

    It looks like you are trying to do a Matrix style...

    It looks like you are trying to do a Matrix style thing where you have random characters falling down the screen. You do not need multi-threading to accomplish this, and in fact, multi-threading...
  5. Replies
    18
    Views
    4,266

    Hmm, that might be a bad idea.

    We agree! Please?
    [/quote]

    Hmm, that might be a bad idea.
  6. Replies
    45
    Views
    29,071

    Correction, Google is continuing to make money...

    Correction, Google is continuing to make money while turning a blind eye.
  7. Replies
    17
    Views
    2,555

    Wow, a scenario where I would actually *LIKE* DRM...

    Wow, a scenario where I would actually *LIKE* DRM that prevents me from "playing" the content...
  8. Replies
    9
    Views
    8,273

    Having used PayPal since 2002, I can say that...

    Having used PayPal since 2002, I can say that once you get past the initial confirmation silliness, PayPal is quite easy to use.
  9. Replies
    2
    Views
    1,193

    When the preprocessor processes your program, it...

    When the preprocessor processes your program, it becomes:


    /* a bunch of included header file code from stdio.h here */
    main()
    {
    int x=5,y;
    y=4*x-3*x-3;
    printf("%d",y);
    }
  10. Thread: sqrt function

    by jEssYcAt
    Replies
    16
    Views
    14,519

    Unless you are only paraphrasing the assignment...

    Unless you are only paraphrasing the assignment description, the assignment is asking you to "calculate and display" in the mySquareRoot() function. This means the code you have is incorrect as you...
  11. Replies
    14
    Views
    3,440

    The compiler doesn't understand that you mean to...

    The compiler doesn't understand that you mean to declare 3 separate variables as arguments to the function. It only sees that you are declaring f 3 times in a row, each time defining it as an array...
  12. Replies
    14
    Views
    3,440

    In your forward declaration: char* f1 is...

    In your forward declaration:
    char* f1 is declaring f1, which is a pointer to char.
    char* f2 is declaring f2, which is a pointer to char.
    char* f3 is declaring f3, which is a pointer to char.

    In...
  13. No no, he was asking about acting like a "troll",...

    No no, he was asking about acting like a "troll", not a "spammer" :rolleyes:
  14. Replies
    5
    Views
    2,860

    oops, I just noticed the bool hungry = true, so...

    oops, I just noticed the bool hungry = true, so you're right in this case. However then I would say it is not useful in this case to have hungry even in the if statement since we are really only...
  15. Replies
    5
    Views
    2,860

    Actually, mom may be cooking and we just aren't...

    Actually, mom may be cooking and we just aren't hungry.

    if ( hungry && momCooking )
    can be false if hungry is false and momCooking is true, if hungry is true and momCooking is false, or if...
  16. It looks to me more like you hurt his feelings by...

    It looks to me more like you hurt his feelings by pointing out the flaw in his "perfect solution" (i.e. the registry hack he proposed). From that point on, every post from him was a "his way vs....
  17. Replies
    6
    Views
    2,552

    also, your for loop is only executing the while...

    also, your for loop is only executing the while loop. Even if you use a different variable for the for loop than the while loop (which you should), you will only ever print the very last number. ...
  18. Replies
    19
    Views
    14,516

    Apparently our economy woes are affecting the...

    Apparently our economy woes are affecting the rest of the solar system too, so they're taking aim to remove the problem...

    Kidding aside, that's scary stuff. He's quite right when he says...
  19. Thread: Silly Jokes

    by jEssYcAt
    Replies
    6
    Views
    8,951

    one that I used in a program...

    one that I used in a program a while back:

    #define hello int
    #define world main
    /* some other defines... */
    hello world(hello World,hellO* WorlD he1L0) {...
  20. Replies
    26
    Views
    3,989

    I had wondered the same thing myself from the...

    I had wondered the same thing myself from the first time I ever saw the guts of a computer. When you look closely enough at how the processor works on a physical level (ignoring the high level...
  21. Poll: Mt. Dew ftw! I dislike too much blood in my...

    Mt. Dew ftw! I dislike too much blood in my caffeine system.
  22. Replies
    19
    Views
    2,583

    Only use srand(time(NULL)); one time in your...

    Only use srand(time(NULL)); one time in your program, generally when it starts (in your program, I would put it between int min; and while(random)

    srand() is meant to seed rand()'s algorithm once...
  23. Thread: Destructors

    by jEssYcAt
    Replies
    15
    Views
    4,045

    A class's destructor can be used to free any...

    A class's destructor can be used to free any memory that the class allocated (using the delete keyword), and it can do lots of other things as well. But to understand what a destructor actually is...
  24. Replies
    11
    Views
    18,667

    Whatever you get for him, expect to spend time...

    Whatever you get for him, expect to spend time with him while he plays, which isn't a bad thing really.

    My 3 year old wasn't content to pretend (with the not-connected controller) while I actually...
  25. Replies
    3
    Views
    3,136

    Another guess is that perhaps you have the wrong...

    Another guess is that perhaps you have the wrong variable somewhere. Check to make sure you are not calling one or more drawing functions with the wrong buffer variable. If you are, then you are...
Results 1 to 25 of 210
Page 1 of 9 1 2 3 4