GIDForums  

Go Back   GIDForums > Computer Programming Forums > CPP / C++ Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 10-Oct-2003, 16:40
mohammed mohammed is offline
New Member
 
Join Date: Oct 2003
Location: In Egypt
Posts: 2
mohammed is an unknown quantity at this point

problem with creating class


firstly, 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  
Old 11-Oct-2003, 09:04
Garth Farley Garth Farley is offline
Invalid Email Address
 
Join Date: May 2002
Location: Ireland
Posts: 638
Garth Farley is a jewel in the roughGarth Farley is a jewel in the roughGarth Farley is a jewel in the rough
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 GIDBlogToyota - 2008 July Promotion by Nihal

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

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

vB 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
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

All times are GMT -6. The time now is 03:23.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.