Search:

Type: Posts; User: Desolation

Page 1 of 20 1 2 3 4

Search: Search took 0.02 seconds; generated 57 minute(s) ago.

  1. Replies
    9
    Views
    1,547

    If there is no way for you to specify this is an...

    If there is no way for you to specify this is an ANSI project, add the following line at the top of your file:
    #undef UNICODEEdit: Alternatively you can just use wstring as well.

    Edit: Nevermind...
  2. No offense, but have you actually looked at the...

    No offense, but have you actually looked at the link I have posted ?

    The output is not judged. The sum of all written numbers is what is judged and it is the only information available to the...
  3. I made a small change to the output so that the...

    I made a small change to the output so that the digit representation is shown as well.

    new output | Copy Paste Code

    Edit: I have corrected a spelling mistake ("fourty" instead of "forty") but I...
  4. The challenge does not validate code, it valides...

    The challenge does not validate code, it valides user input (i.e. you need to type in the answer). This number is summed in the "total" variable which is done right above the line you quoted and is...
  5. I have rewritten it from scratch so that it is...

    I have rewritten it from scratch so that it is easier to spot mistakes. However, I get the exact same result and this time I'm pretty sure there is no possible mistake as the output seems correct to...
  6. I will try without "hundred and". English is not...

    I will try without "hundred and". English is not my native language so I thought the "and" was compulsory.

    As for your first suggestion, it is dealt with in this part of the code:
    // make...
  7. Here's the link to the challenge:...

    Here's the link to the challenge:
    Hacker-Challenge | Dare Your Mind :: Challenges :: ONE plus TWO is 6

    As for your comment, I will check this right now, thanks.

    Edit: Only letters count...
  8. I'm sorry I wasn't clear. I have tested my answer...

    I'm sorry I wasn't clear. I have tested my answer on the site's challenge verification page and it does not validate hence I have to be wrong somewhere but I have looked at it and can't find my...
  9. Sum letters in written numbers from 1 to 2008

    Hey there. Haven't been coding in a while, but I am doing challenges on DareYourMind.net and can't figure why I do not get the correct answer. I've picked quite a few numbers (~20-30) and calculated...
  10. As a B. Com. student I may be able to help you...

    As a B. Com. student I may be able to help you out on this one. In marketing classes we are taught that a product (be it an object, an idea, a concept, a person...) has different kinds of uses. The...
  11. Replies
    14
    Views
    2,050

    Hendrix is (wayyyyyyyyyyyyyyyyyyyyyy) overrated....

    Hendrix is (wayyyyyyyyyyyyyyyyyyyyyy) overrated.

    Now that it's been said, let's talk about Les Paul, shall we (or at least not spend the whole thread saying X was better than him).
  12. Replies
    6
    Views
    1,420

    Even if keys are pressed when the function is...

    Even if keys are pressed when the function is executed, the sprite will not move. There is another error.
  13. Replies
    6
    Views
    1,420

    Also, I might suggest you another way to code...

    Also, I might suggest you another way to code this that I think is much cleaner:


    if( key[KEY_LEFT]) playerX - 20;
    else if( key[KEY_RIGHT]) playerX + 20;
    else if( key[KEY_UP]) playerY + 20;...
  14. Replies
    6
    Views
    1,420

    Check your operators in your movePlayer()...

    Check your operators in your movePlayer() function. It is a very obvious mistake.
  15. Replies
    148
    Views
    17,223

    Poll: I'd definitely try System.Console.Write() as a...

    I'd definitely try System.Console.Write() as a name.
  16. Replies
    14
    Views
    1,606

    Yes it's perfectly ok to skip parts of the book...

    Yes it's perfectly ok to skip parts of the book covering things you already know.

    I agree with Salem that it's pointless (and not to say impossible) to perfectly master the STL.
  17. If I am not mistaken both of these games use...

    If I am not mistaken both of these games use OpenGL which works in other environments than Windows (i.e. I strongly believe they are not using SDL...)

    And what kind of question is that "does the...
  18. Replies
    3
    Views
    8,670

    sell price * (1 - profit margin) = retail price...

    sell price * (1 - profit margin) = retail price
    sell price = retail price / (1 - profit margin)
    retail price / sell price = (1 - profit margin)

    $1.00 / $1.30 = 1 - profit margin
    23% = profit...
  19. Thread: 2012

    by Desolation
    Replies
    57
    Views
    30,255

    Expert says 'just another flu virus,' so why the...

    Expert says 'just another flu virus,' so why the fear?

    It seems you're mostly right. That's what I thought as well. There are mainly two differences (a) we don't know yet the strength of this...
  20. Replies
    14
    Views
    8,622

    Given that you are doing this outside of your...

    Given that you are doing this outside of your work hours I would consider this project yours. I would come up to my boss and ask him "Now that we've defined the project, how much are you willing to...
  21. Replies
    2
    Views
    1,346

    Well, you could have a Fraction class with both...

    Well, you could have a Fraction class with both numerator and denominator as member variables and overload arithmetic operators to mimic math behavior.
  22. Replies
    6
    Views
    1,718

    But he wants to check wether or not the file is...

    But he wants to check wether or not the file is open.
  23. Replies
    6
    Views
    1,718

    I would transform if(!file_in) to...

    I would transform if(!file_in) to if(!file_is.is_open()).
  24. Replies
    19
    Views
    2,763

    I did not say I used this form. It feels...

    I did not say I used this form. It feels backwards to me and I wouldn't use it. Just felt like mentioning the alternative.
  25. Replies
    20
    Views
    25,433

    Did you make the modifications we have suggested...

    Did you make the modifications we have suggested ?

    Also, you may want to change <stdlib.h> to <cstdlib>.
Results 1 to 25 of 500
Page 1 of 20 1 2 3 4