943,815 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 715
  • C++ RSS
Apr 25th, 2009
0

plz, I just want an idea

Expand Post »
I have completed an OOP course using C++ and each student has been asked to do an end term project, so that they make use of all things that was learned, like ( operator oveloading, inheritance , polymorphisms, files, templates) and every thing that can support the project.
I want just some ideas, i thought of making a simple library system, but i think there are many other things I can make use of OOP more than in a library , can you tell me of some please?
I want a project that makes me deeply understand every thing in OOP

please give me many ideas
I am waiting for your replay
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Dia.A is offline Offline
4 posts
since Apr 2009
Apr 25th, 2009
0

Re: plz, I just want an idea

Just think of something in real life that has a lot of objects interacting together, as that's what you want in the program. You could do a poker game, fight-a-monster game, a catalog of libray books, lots of stuff. Programming is supposed to mimick the real world, so think of a situation with a bunch of objects.
good suggestions ---> these neat ideas.
Reputation Points: 14
Solved Threads: 22
Junior Poster
JugglerDrummer is offline Offline
138 posts
since Apr 2009
Apr 25th, 2009
0

Re: plz, I just want an idea

One of my favorite projects I worked on was a small RPG type game.

I can't remember it all, but I had classes that were derived from base classes.. these were the fighters. Elvaan, Hume, etc. And each class had different traits... (Elvaan might have attack +10%, Hume might have a +10% chance of blocking, something else might have a +5% chance of attacking twice, etc.). Each race had different starting attributes, attack, strength, magic attack, HP, etc.

Then I put them all into a main() file for the fighting simulation. Each round would start a battle between 2 races. Main() would call the battle() function, which would setup the possibilities and call a random() function multiple times to determine who would attack, how much they would attack for and if anyone had the chance of blocking how often, etc. This would continue to loop, requiring the user hit Enter between every round, until one of the creatures was defeated.

Of coarse it took multiple runs to figure out if I had made one race too powerful or one race not powerful enough, which I then went back and made adjustments to the attributes.

Needless to say, this was an extremely fun exercise. Allows for a ton of creativity.
Last edited by Duki; Apr 25th, 2009 at 8:25 pm.
Reputation Points: 817
Solved Threads: 32
Nearly a Posting Virtuoso
Duki is offline Offline
1,474 posts
since Jun 2006
Apr 26th, 2009
0

Re: plz, I just want an idea

> You could write an Object Oriented Program (of course ) that represents a 'virtual computer', you'll have to make classes for the processor, the motherboard, the graphical card, the ports (USB, FireWire, Serial, PS/2, etc.), the CD-Drive(s), and much much more ...

>>You can make this project as big or as small as 'you' want ...
Reputation Points: 2125
Solved Threads: 243
Postaholic
tux4life is offline Offline
2,105 posts
since Feb 2009
Apr 26th, 2009
0

Re: plz, I just want an idea

In some books I read:
Elevator Simulation:: The program will simulate elevators. The user pushes a button ( by pressing a number key on the keyboard. Number indicates the floor on which he is) and then the elevator decides its path so that it could fill up requests of most of the users.
You model an elevator as an object.
Reputation Points: 1486
Solved Threads: 140
Practically a Posting Shark
siddhant3s is offline Offline
816 posts
since Oct 2007
Apr 26th, 2009
0

Re: plz, I just want an idea

Actually you can write an object oriented program for nearly (why am I using 'nearly' here) everything you can simulate (inspiration enough now, I think ) ...
Reputation Points: 2125
Solved Threads: 243
Postaholic
tux4life is offline Offline
2,105 posts
since Feb 2009
Apr 26th, 2009
0

Re: plz, I just want an idea

Click to Expand / Collapse  Quote originally posted by tux4life ...
> You could write an Object Oriented Program (of course ) that represents a 'virtual computer', you'll have to make classes for the processor, the motherboard, the graphical card, the ports (USB, FireWire, Serial, PS/2, etc.), the CD-Drive(s)...
Oooh I like that one, That sounds fun.
Reputation Points: 817
Solved Threads: 32
Nearly a Posting Virtuoso
Duki is offline Offline
1,474 posts
since Jun 2006
Apr 29th, 2009
0

Re: plz, I just want an idea

Click to Expand / Collapse  Quote originally posted by tux4life ...
> You could write an Object Oriented Program (of course ) that represents a 'virtual computer', you'll have to make classes for the processor, the motherboard, the graphical card, the ports (USB, FireWire, Serial, PS/2, etc.), the CD-Drive(s), and much much more ...

>>You can make this project as big or as small as 'you' want ...
yes this sounds very creative ,but i think i need strong knowledge in computer architecture,don't i?
if any one have information and tips for this project please tell me.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Dia.A is offline Offline
4 posts
since Apr 2009
Apr 29th, 2009
0

Re: plz, I just want an idea

Click to Expand / Collapse  Quote originally posted by tux4life ...
> You could write an Object Oriented Program (of course ) that represents a 'virtual computer', you'll have to make classes for the processor, the motherboard, the graphical card, the ports (USB, FireWire, Serial, PS/2, etc.), the CD-Drive(s), and much much more ...

>>You can make this project as big or as small as 'you' want ...
this sounds very creative ,but i think i need strong knowledge in computer architecture,don't i?
if any one have information and tips for this project please tell me.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Dia.A is offline Offline
4 posts
since Apr 2009
Apr 29th, 2009
0

Re: plz, I just want an idea

Click to Expand / Collapse  Quote originally posted by Dia.A ...
but i think i need strong knowledge in computer architecture,don't i?
That depends on how detailed you want to implement it, bu a basic knowledge is required of course ...
Reputation Points: 2125
Solved Threads: 243
Postaholic
tux4life is offline Offline
2,105 posts
since Feb 2009

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Prevent Duplicate Inputs to Array
Next Thread in C++ Forum Timeline: API to get CPU utilization





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC