HMMMMM, I cant think of anything that I want to do, can anybody suggest something to program that is not too advanced. I think someting to do with Classes and maybe a bit of virtual functions and things like that. But I can't think of anything to incorporate this into.
> can anybody suggest something to program that is not too advanced
One man's "simple" is another man's "huh?"
What sort of programs have you done, and how did you rate their difficulty?
That's not much to begin with. I personally don't think very highly of the purposes of virtual functions and inheritance.
How about a container class we can all use? A rope, cord, trie, whatever that the STL doesn't have yet :) Thinking of doing one myself.
Failing that, why dont you make a small game? But use classes and virtuals with it where and when you can. Depending on how much you know, take a dive into openGl or even the tricky DirectX
Write a program that prints its own source code.
Do not use File I/O to read the source file to do this.
Well, I know a bit of how direct X works, what coding to do with it but I dont really know enough to implement it all into my own game.
>What sort of programs have you done, and how did you rate their difficulty?
Not really very difficult, Ive made a Tic Tac Toe, a Horse Betting game where the winner was not decided by the odds. I think I did a very small program to do with bank accounts with classes. All not very difficult and I dont know anything about STL yet. I really ought to expand my knowledge a bit.
A battleship game. Either ascii graphics or win32 or opengl.
QuestionC: why write another quine when we all already know what the smallest one looks like? :)
A sorting algorithm?
You stated you did a small bank account program using claesses - heres a perfect one for you:
Design a running C++ simulation of an ATM machine. Think of clasess, eg: screen, withdraw, deposit. Then code the program and test it as you go.
I had to do this exact thing for an assignment last year and I found it both challenging and enjoyable.
for my current assignment we were told to find a small business and make a program for that. ive chosen to do a small 4x4 breakers yard.
this really depends on what you want to achieve. If your goal is to improve your programming ability, try writing one of your existing programs in a different style/language (try a functional language for instance).
If your goal is to improve your C++ specifically, I'd think about generic components that you use and try to write a template for them. Play with some boost libraries. If you really want to work with classes and virtual functions, write a simple GUI toolkit. there's an excellent article on gamedev about writing a directx gui, try to extend it so that you can create GUIs from xml files
<dialog title="main window">
<button x="20" y="30" width="100" height="20" caption="press me"/>
<editbox x="50" y="30" width="100" height="20" />
Wish we could do that in XHTML ;) You could be lazy and use libxml or something for the dirty work, so its just glueing the XMl and GUI (maybe GTK, FLTK or Qt) together. Directx... ugh.