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...
Type: Posts; User: Desolation
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...
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...
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...
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...
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...
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...
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...
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...
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...
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...
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).
Even if keys are pressed when the function is executed, the sprite will not move. There is another error.
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;...
Check your operators in your movePlayer() function. It is a very obvious mistake.
I'd definitely try System.Console.Write() as a name.
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.
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...
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...
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...
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...
Well, you could have a Fraction class with both numerator and denominator as member variables and overload arithmetic operators to mimic math behavior.
But he wants to check wether or not the file is open.
I would transform if(!file_in) to if(!file_is.is_open()).
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.
Did you make the modifications we have suggested ?
Also, you may want to change <stdlib.h> to <cstdlib>.