![]() |
|
#1
|
||||
|
||||
Using map<> with classesProblem: "Use the type Date [created previously] to develop
a class Event to model events scheduled for specified dates. Use this class in a program that reads several events and stores these in a vector (or array) of Events. After all events have been entered, the output should be in chronological order." Been working on this for a few days. A suggestion was made that I should consider using the map container to accomplish what I want. My textbook doesn't talk about maps but I found some info on the 'net. However, when I use it I get the following error: Code:
Prior to using the map, I had vector<T> containers for each class and output them seperately; when I changed it to a map is when the errors occurred. I'm aware that there's a few better ways to have designed my program, but due to time constraints, I'd rather not rewrite it. __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#2
|
||||
|
||||
|
I take it no one uses map containers?
__________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
|
#3
|
||||
|
||||
|
Quote:
__________________
Cow: You're a lawyer too? Mooseblood (mosquito): Ma'am, I was already a bloodsucking parasite. All I needed was a briefcase! |
|
#4
|
||||
|
||||
|
Quote:
![]() __________________
Common Sense v2.0-Striving to make the world a little bit smarter. |
Recent GIDBlog
First week of IA training by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| First time using classes | crystalattice | CPP / C++ Forum | 6 | 13-Oct-2004 08:21 |
| SDL + Classes Question | darkzerox | CPP / C++ Forum | 2 | 23-May-2004 19:38 |
| Help with c++ program with classes | jimmy55 | CPP / C++ Forum | 12 | 18-Mar-2004 10:32 |
| ClassView not showing my classes (VC++, namespace, headers) ?!?!? | djovanov | CPP / C++ Forum | 1 | 13-Jan-2004 04:54 |
| using windows WMI and CMI classes in Dev-c++ | Dawis | CPP / C++ Forum | 0 | 26-Oct-2003 04:18 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The