If you use code blocks (described in the posting guidelines...you did read them, didn't you?) then formatting is preserved:...
After inputting the number from the user, set a variable V to zero. Loop over each digit from right to left and multiply V by 10, add the...
So the net effect is that if you "need" to change the value of a const, don't bother, because the compiler will thwart your attempts. If you need...
There's nothing like actually trying it out. Visual Studio 2008 throws the error: error C2440: 'initializing' : cannot convert from 'const int...
Two weeks is nowhere near enough time to get to grips with any kind of GUI programming (even if you're using toolkits, e.g. Qt). Display the data...
Depends how accurate it needs to be. You could sleep the process for 100ms, then do all the stuff on wakeup. Time per iteration will be 100ms...
const is for variables that do not change. So they are like defined symbols but with type checking. #define a 1 const int b=2; b is recognised...
Could it be because deck.shuffle() is commented out?
Better to use parentheses in the macro so that the macro can be used "normally". You wouldn't normally have to bracket a subexpression so...
Rather than calling lots of functions, if the input format is guaranteed you can do something like: char *tm="21:43:33"; int...
Better to set a flag to 1 or 0 than to use some mystical value 14296 - reviewers will be thinking "what's the significance of 14296?" It would be...
Not directly; you would need to parse the IP address entered (as a string, normally), extract the numbers, then generate the next 20 addresses...
Yes, you can use any value there, or even read it from a variable or a parameter that is passed into the function. But this is a lot of extra...
http://en.wikipedia.org/wiki/Hash_function
What's the point of duplicating the OP's post?
lol and do we get the credit as well? If you have no idea about C then why do you think you should get anything but zero marks for the...
There isn't enough information to answer the question. The question refers to high temperature; are there some temperature values stored in an...
What sort of stuff are you interested in? What projects does the Department have running; is there anything you can do that will contribute to them?
Either link.exe isn't on your computer, or it's not on the PATH.
Still wrong. i needs to start out as strlen(str)-1. For the input "123", '1' is at element zero, '2' is at element one, and '3' is at element...
Separate names with a comma.