Every now and then I get bored and pick up my C++ book, and relearn the basics, and teach myself new things. It seems I don’t have the attention span to learn the whole thing at once. I was surprised by how much actually has stuck, though.
Like for example, I was able to make a guess the number game where the computer picks a random integer, and the player has to guess what it is, while the computer tells you if it’s too high or two low. I did this on a whim the first day I decided to pick it back up, and it took about 20 minutes. I was so proud I showed it to all my friends .
I just finished a program that would calculate how many quarters, dimes, nickels, and pennies are in a user-given monetary amount.
I’ve also made a program that makes sequentially bigger rows of asterisks, up to a given amount. And a variation on that, where the rows get bigger, then smaller.
So, coding-dopers, how about you give me some problems which can be solved with my limited knowledge.
So far I know how to use:
-if statements
-for, while, and do-while loops
-void, and return functions
-switch statements
I think that’s it for now, but I welcome all challenges, no matter the difficulty.
Alternatively, if you would like to see my programs (either the source code, the compiled version, or both), you can email me!