User profile: dhayden

User info
User name:dhayden
Number of posts:344
Latest posts:

Paper, rock, scissor game
To make the logic easier, convert the user's input to lower (or upper) case. You'll also want to val...

how to use getopt
[quote]And check if optarg is a null pointer. [/quote] When can optarg be null in this case? It can ...

initializing pointers to memory addresses or values?
The only thing you can really do with arrays are (1) get their size with sizeof() and (2) take the a...

Print out digits of a number
They are printed in reverse because you print the least significant digit first, and then make the r...

Basic c++ math question
Doh! Right, he's setting it right at line 13: [code]od=ln*ld;[/code] and then later has: [code]int ...