![]() |
|
#1
|
|||
|
|||
problem with creating classfirstly, I'm sorry for my bad english language becuase I can't speak English very well.
I have problem to create a class that take data base (i.e students names,ages,birthday) and I want this class to search for any name, also delete any item, add any item. can you help me, please. |
|
#2
|
|||
|
|||
|
Hey, and welcome to these boards!
I need to know have you any experience with C++? Is this a course excercise - I don't want to give you a clever trick if you've not come across it yet. What you need is the vector class, see here for it's function list: www.fredosaurus.com This is a member of the STL (Standard Template Library) - it's a very useful class for creating dynamic arrays, ones which will grow and shrink to suit. You can pass it any object you want, and then you can add & remove them as you like, using the add() and erase() functions. If it is an excercise, I'm not going to code it for you - the only way you'll learn is by doing it yourself. But I will help you if you have syntax errors & stuff. OK? GF |
Recent GIDBlog
Toyota - 2008 July Promotion by Nihal
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Keeping track of a private variable outside the class | viperv80 | CPP / C++ Forum | 1 | 03-Dec-2003 17:25 |
| STL (algorithm): for_each problem | yosep | CPP / C++ Forum | 1 | 03-Nov-2003 11:36 |
| Upgrade of BBCode class sometime today | JdS | GIDForums™ | 4 | 03-Nov-2003 07:18 |
| unwanted scrollbar problem | kelly001 | Web Design Forum | 3 | 24-Oct-2003 10:44 |
| need help to define a class in C++ | yannoush | CPP / C++ Forum | 7 | 09-Sep-2003 00:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The