Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Aug 14th, 2006, 10:53 PM   #1
RemoteC2
Programmer
 
RemoteC2's Avatar
 
Join Date: Jan 2006
Posts: 55
Rep Power: 3 RemoteC2 is on a distinguished road
Function Overloading, Copy Constructors, Default Arguements

I have just finished a chapter in my C++ book that dealt with function overloading, copy constructors, and default arguments. i am not that imaginative (i know i should be as a programmer), and i was looking for ideas for a program that i could make using these 3 concepts...please dont flame for this, b/c i am just looking for some ideas.
RemoteC2 is offline   Reply With Quote
Old Aug 14th, 2006, 11:44 PM   #2
Jimbo
Battle Programmer
 
Jimbo's Avatar
 
Join Date: Feb 2006
Location: Bellevue, WA, USA
Posts: 751
Rep Power: 3 Jimbo is on a distinguished road
Write your own string class. Have multiple constructors, define your own operators, and put a few default arguments in somewhere. You could also write your own vector class, then use it to write your own string class... or something like that, to throw some templating in. If youve not done templates yet, start with a string class
Jimbo is offline   Reply With Quote
Old Aug 14th, 2006, 11:50 PM   #3
ReggaetonKing
Sexy Programmer
 
ReggaetonKing's Avatar
 
Join Date: Nov 2005
Location: New Jersey
Posts: 891
Rep Power: 3 ReggaetonKing is on a distinguished road
Send a message via AIM to ReggaetonKing
That sounds good to me too, I might just do that as well. Thanks Jimbo
__________________
I would love to change the world, but they won't give me the source code!
ReggaetonKing is offline   Reply With Quote
Old Aug 15th, 2006, 2:52 AM   #4
Soulstorm
Hobbyist Programmer
 
Soulstorm's Avatar
 
Join Date: Jan 2006
Location: Menidi, Athens, Greece
Posts: 239
Rep Power: 3 Soulstorm is on a distinguished road
I had the same idea a while ago, and I did it. I built a vector class and a string class. Although they are both implemented in a much better way in the STL, it's a very good begining to to understanding the basics of classes' abilities...
__________________
Project::Soulstorm (personal homepage)
Soulstorm is offline   Reply With Quote
Old Aug 15th, 2006, 11:26 AM   #5
RemoteC2
Programmer
 
RemoteC2's Avatar
 
Join Date: Jan 2006
Posts: 55
Rep Power: 3 RemoteC2 is on a distinguished road
okay, i am going to give that a try, thx!
RemoteC2 is offline   Reply With Quote
Old Aug 15th, 2006, 12:09 PM   #6
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 371
Rep Power: 0 King is an unknown quantity at this point
Are you really ready for these more advanced topics? In your other thread you had a simple class all messed up. Maybe you should stick with more simplistic classes until you get the hang of it and then move into the more advanced topics. You should really take your time with learning c++, don't rush it.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling Maverik 6.2 (from C) megamind5005 C 16 May 3rd, 2006 5:41 PM
libraries matko C 1 Jan 22nd, 2006 2:12 PM
Php Postgresql Class Pizentios Show Off Your Open Source Projects 15 Jun 28th, 2005 9:55 AM
Jackpot game zorin Visual Basic 3 Jun 10th, 2005 1:19 PM
airport Log program using 3D linked List : problem reading from file gemini_shooter C++ 0 Mar 2nd, 2005 4:12 PM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 3:52 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC