C++ Practice Projects
Everyone pitch in and post their favorite practice programs to refresh their memories or the programs they first made when starting off, it would really help out with all the people wondering what to make for practice (myself included).
Would be very helpful, thanks :D
I used to create excessive numbers of hex dump programs
Like this, only with less features :)
I create programs with no real meaning - a login program to somewhere that isnt exists (to practice files I/O) and all kind of "Hello World" in difrent ways - open gl, normal window, files etc....
Not exactly something for beginners, but I'm attempting to make an IRC daemon. Just try making your own equivalent of programs you often use. Then you can add features to it that the original program didn't have and be able to enjoy the program yourself.
I don't try to write full programs. Just create snippets of code as I go along to try and understand the concepts I'm learning.
Tic Tac To , Blackjack, Guess the number, cat and dog converters, calculators, they are what i started with.
Intermediate: big prime generators, expression calculators, interpreters, simple shells... hey, if you don't try, you never learn.
You can also try write some games with AI (tic-tac-toe, pong, etc) for fun and stress relief.
Hey, you should make something which puts the correct code tags on some c/c++ code. It's not all that hard, but it may be a good thing to try.
or you could do something like this: this where the user inputs something like:
and the program gets the result (14).
I just created a simple conversion program. But I do it so it is fail safe. I also have done it with different GUI APIs to see how the values are changed for instance qt can be made to accept only numbers as input but the range is different then doing it using standard C++ as a console app.
When I learned more I was interested in implementing different data structures like binary trees.
Later I started learning about Design Patterns and created a program about beer inventories that used one of these patterns.
To learn about networking and threads I created a simple client server program. It may be simplest to just create a ping program.
Because I haven't done anything in so long this is a good thread for me because I have forgotten most of what I did.
If you are interested in recursion try doing the chess board queens problem without looking it up. I'm not sure the exact name 12 queens?
It's called the eight queens problem: arrange all the queens on the board so that none of the pieces are attacking each other.
> created a program about beer inventories that used one of these patterns.
All my programs are going to involve beer in some way from now on I think. :cool:
If you know another language like Italian, French, or Spanish, you can make a verb conjugater. You have file I/O, exceptions to handle, and output to manipulate with menus for different tenses. I'm working on one right now in fact.
@globalRick - please read the forum rules, this thread is 5 years old.