[C++]Uni Assignment

Questions about programming languages and debugging
Post Reply
User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

[C++]Uni Assignment

Post by ayu »

Just finished an assignment for Uni (C++). The assignment was to make an application that would handle participants for a party, and then present it all with a simple GUI using wxWidgets. Thought I'd make the source available for anyone who is interested.

Image

The application consists out of 6 files, 3 header files and 3 cpp files...

the main parts are

base
participatorRegister
participator

Where they handle each other like the following:

(GUI) base -> ParticipatorRegister -> Participator

the base is the GUI and handles the ParticipatorRegister, which then handles all the Participators.

base.h
http://code.suck-o.com/110

base.cpp
http://code.suck-o.com/109

ParticipatorRegister.h
http://code.suck-o.com/106

ParticipatorRegister.cpp
http://code.suck-o.com/107

Participator.h
http://code.suck-o.com/105

Participator.cpp
http://code.suck-o.com/108


Update:

Fixed memory leak


Code: Select all

MainFrame::~MainFrame()
{
	delete [] listItems;
}
"The best place to hide a tree, is in a forest"

User avatar
mohXin
Newbie
Newbie
Posts: 2
Joined: 01 Nov 2008, 17:00
15

Post by mohXin »

nice work! :)

User avatar
Still_Learning
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 1040
Joined: 11 Jun 2008, 16:00
15
Location: Trigger City

Post by Still_Learning »

Very nice.. I cant wait until i can sign up for some more Uni courses :D

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Thanks guys :) This version is a little outdated now, I made some changes before I turned in the assignment (mostly design changes, like removing the annoying color and such). But since it's only minor changes and it's not really an application that you would use for anything else then study and learning, then I wont bother to upload the new version ^^
"The best place to hide a tree, is in a forest"

User avatar
Still_Learning
Fame ! Where are the chicks?!
Fame ! Where are the chicks?!
Posts: 1040
Joined: 11 Jun 2008, 16:00
15
Location: Trigger City

Post by Still_Learning »

Please forgive me for asking such a stupid question, as im still learning C++ and am a noob to it.. where does it save the information too that you input?

User avatar
ayu
Staff
Staff
Posts: 8109
Joined: 27 Aug 2005, 16:00
18
Contact:

Post by ayu »

Still_Learning wrote:Please forgive me for asking such a stupid question, as im still learning C++ and am a noob to it.. where does it save the information too that you input?
In the memory, it's all lost when you shutdown the application. Since it wasn't in the assignment description to save it to a file, I saved myself the work and skiped that ^^
"The best place to hide a tree, is in a forest"

Post Reply