Click here to Skip to main content
15,567,406 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to make a project resolution independent.? Pin
Alan Balkany19-Dec-12 5:25
Alan Balkany19-Dec-12 5:25 
GeneralRe: How to make a project resolution independent.? Pin
Kimcopeland2-Apr-21 17:18
Kimcopeland2-Apr-21 17:18 
QuestionASM with stams library of C ++ Pin
Gurunathkudalkar18-Dec-12 22:15
Gurunathkudalkar18-Dec-12 22:15 
AnswerRe: ASM with stams library of C ++ Pin
CPallini18-Dec-12 23:19
mveCPallini18-Dec-12 23:19 
Questionerror C2228 "must have class/struct/union" Pin
alaaan7318-Dec-12 5:55
alaaan7318-Dec-12 5:55 
AnswerRe: error C2228 "must have class/struct/union" Pin
Chris Losinger18-Dec-12 6:19
professionalChris Losinger18-Dec-12 6:19 
AnswerRe: error C2228 "must have class/struct/union" Pin
Richard MacCutchan18-Dec-12 8:09
mveRichard MacCutchan18-Dec-12 8:09 
AnswerRe: error C2228 "must have class/struct/union" Pin
Stefan_Lang21-Dec-12 2:59
mveStefan_Lang21-Dec-12 2:59 
You can call a class method either by using the '.' operator on an instance of that class, e. g.
C++
psngr.SetPassengerName("SomeName");

Or by using the '::' operator on the class, if it is a static method, e. g.:
C++
Passenger::SetPassengerName("SomeName");

I don't think either makes sense in this case however.

Your mistakes have already been pointed out, but from the information you gave us it's hard to derive what is actually needed to fix them. Looking at the declaration of class Flight, I suspect that reservations is supposed to be a list of, well, reservations. The prototype of cancelReservation(string resNum) indicates that you are supposed to use a string representing the reservation number as a key for retrieving a specific reservation. So your reservations may in fact be organized as a sorted tree - but that is something you have to find out for yourself.

In any case, the method reserveSeat() should create a new object of type Reservation and add it to that list. Probably you should apply these method calls on that new object in order to properly initialize it. The declaration of class Reservation should shed more light on this.
QuestionCan we capture HD video using DirectShow C++/MFC .? Pin
mbatra3118-Dec-12 0:30
mbatra3118-Dec-12 0:30 
AnswerRe: Can we capture HD video using DirectShow C++/MFC .? Pin
Kimcopeland1-Apr-21 19:32
Kimcopeland1-Apr-21 19:32 
AnswerRe: Can we capture HD video using DirectShow C++/MFC .? Pin
Kimcopeland2-Apr-21 6:01
Kimcopeland2-Apr-21 6:01 
QuestionCWinApp::OnFileNew failed ? Pin
Codzer17-Dec-12 20:23
Codzer17-Dec-12 20:23 
GeneralRe: CWinApp::OnFileNew failed ? Pin
Jochen Arndt17-Dec-12 22:33
professionalJochen Arndt17-Dec-12 22:33 
GeneralRe: CWinApp::OnFileNew failed ? Pin
Codzer18-Dec-12 3:48
Codzer18-Dec-12 3:48 
AnswerRe: CWinApp::OnFileNew failed ? Pin
Jochen Arndt18-Dec-12 4:03
professionalJochen Arndt18-Dec-12 4:03 
QuestionLinked List Via Disk File Pin
imboared117-Dec-12 20:01
imboared117-Dec-12 20:01 
SuggestionRe: Linked List Via Disk File Pin
Richard MacCutchan17-Dec-12 23:15
mveRichard MacCutchan17-Dec-12 23:15 
QuestionConfused with destructor Pin
Super Lloyd17-Dec-12 3:33
Super Lloyd17-Dec-12 3:33 
AnswerRe: Confused with destructor Pin
Erudite_Eric17-Dec-12 5:54
Erudite_Eric17-Dec-12 5:54 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 6:01
Super Lloyd17-Dec-12 6:01 
GeneralRe: Confused with destructor Pin
jschell17-Dec-12 9:31
jschell17-Dec-12 9:31 
GeneralRe: Confused with destructor Pin
Super Lloyd17-Dec-12 17:59
Super Lloyd17-Dec-12 17:59 
GeneralRe: Confused with destructor Pin
megaadam18-Dec-12 4:51
professionalmegaadam18-Dec-12 4:51 
GeneralRe: Confused with destructor Pin
Stefan_Lang19-Dec-12 6:33
mveStefan_Lang19-Dec-12 6:33 
GeneralRe: Confused with destructor Pin
Super Lloyd19-Dec-12 12:35
Super Lloyd19-Dec-12 12:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.