Click here to Skip to main content
       

C / C++ / MFC

 
QuestionHow to make a project resolution independent.? Pinmembermbatra3118-Dec-12 23:56 
AnswerRe: How to make a project resolution independent.? PinmemberJochen Arndt19-Dec-12 0:29 
GeneralRe: How to make a project resolution independent.? Pinmembermbatra3119-Dec-12 0:39 
GeneralRe: How to make a project resolution independent.? PinmemberJochen Arndt19-Dec-12 0:52 
GeneralRe: How to make a project resolution independent.? Pinmembermbatra3119-Dec-12 1:25 
GeneralRe: How to make a project resolution independent.? PinmemberJochen Arndt19-Dec-12 1:33 
GeneralRe: How to make a project resolution independent.? Pinmembermbatra3119-Dec-12 1:44 
GeneralRe: How to make a project resolution independent.? PinmemberJochen Arndt19-Dec-12 2:06 
AnswerRe: How to make a project resolution independent.? PinmemberAlan Balkany19-Dec-12 4:25 
QuestionASM with stams library of C ++ PinmemberGurunathkudalkar18-Dec-12 21:15 
AnswerRe: ASM with stams library of C ++ PinmvpCPallini18-Dec-12 22:19 
Questionerror C2228 "must have class/struct/union" Pinmemberalaaan7318-Dec-12 4:55 
AnswerRe: error C2228 "must have class/struct/union" PinmemberChris Losinger18-Dec-12 5:19 
AnswerRe: error C2228 "must have class/struct/union" PinmvpRichard MacCutchan18-Dec-12 7:09 
You have:
bool Flight::reserveSeat(Passenger psngr, bool smoker)
{
   Passenger.setPassengerName(psngr.getPassengerName());
   passenger.setPassportNumber(psngr.getPassportNumber());
   passenger.setContactNumber(psngr.getContactNumber());
   reservations.smokerSeat=smoker;
 
}
which makes little sense. you are using both Passenger (with upper case P), and passenger (with lower case p) to refer to something. But what, why would you try to set the value of an item in an object from the value taken from that object? Similarly the statement
reservations.smokerSeat=smoker;
make little sense as reservations is a pointer to a pointer (of something). I think you are a little confused about your classes and how they connect to each other.
One of these days I'm going to think of a really clever signature.

AnswerRe: error C2228 "must have class/struct/union" PinmemberStefan_Lang21-Dec-12 1:59 
QuestionCan we capture HD video using DirectShow C++/MFC .? Pinmembermbatra3117-Dec-12 23:30 
QuestionCWinApp::OnFileNew failed ? PinmemberCodzer17-Dec-12 19:23 
GeneralRe: CWinApp::OnFileNew failed ? PinmemberJochen Arndt17-Dec-12 21:33 
GeneralRe: CWinApp::OnFileNew failed ? PinmemberCodzer18-Dec-12 2:48 
AnswerRe: CWinApp::OnFileNew failed ? PinmemberJochen Arndt18-Dec-12 3:03 
QuestionLinked List Via Disk File [modified] Pinmemberimboared117-Dec-12 19:01 
SuggestionRe: Linked List Via Disk File PinmvpRichard MacCutchan17-Dec-12 22:15 
QuestionConfused with destructor PinmemberSuper Lloyd17-Dec-12 2:33 
AnswerRe: Confused with destructor PinmemberErudite_Eric17-Dec-12 4:54 
GeneralRe: Confused with destructor PinmemberSuper Lloyd17-Dec-12 5:01 
GeneralRe: Confused with destructor Pinmemberjschell17-Dec-12 8:31 
GeneralRe: Confused with destructor PinmemberSuper Lloyd17-Dec-12 16:59 
GeneralRe: Confused with destructor Pinmembermegaadam18-Dec-12 3:51 
GeneralRe: Confused with destructor PinmemberStefan_Lang19-Dec-12 5:33 
GeneralRe: Confused with destructor PinmemberSuper Lloyd19-Dec-12 11:35 
GeneralRe: Confused with destructor PinmemberErudite_Eric20-Dec-12 23:20 
AnswerRe: Confused with destructor PinmemberStephen Hewitt17-Dec-12 17:10 
GeneralRe: Confused with destructor PinmemberSuper Lloyd17-Dec-12 21:41 
Questionfuzzy logic code Pinmemberrobot2916-Dec-12 3:10 
AnswerRe: fuzzy logic code PinmvpRichard MacCutchan16-Dec-12 4:25 
GeneralRe: fuzzy logic code Pinmemberrobot2920-Dec-12 4:01 
GeneralRe: fuzzy logic code PinmvpRichard MacCutchan20-Dec-12 4:16 
GeneralRe: fuzzy logic code Pinmemberrobot2920-Dec-12 5:26 
GeneralRe: fuzzy logic code PinmvpRichard MacCutchan20-Dec-12 5:37 
GeneralRe: fuzzy logic code Pinmemberrobot2920-Dec-12 5:40 
GeneralRe: fuzzy logic code PinmemberDavidCrow16-Dec-12 17:20 
AnswerRe: fuzzy logic code PinmemberJoe Woodbury16-Dec-12 19:01 
AnswerRe: fuzzy logic code PinmemberPecuniousPete16-Dec-12 20:51 
GeneralRe: fuzzy logic code Pinmemberrobot2920-Dec-12 4:07 
AnswerRe: fuzzy logic code PinmvpCPallini16-Dec-12 22:40 
GeneralRe: fuzzy logic code Pinmemberrobot2920-Dec-12 4:10 
QuestionRe: fuzzy logic code PinmvpCPallini20-Dec-12 6:25 
AnswerRe: fuzzy logic code Pinmemberrobot2920-Dec-12 6:47 
QuestionRe: fuzzy logic code PinmvpCPallini20-Dec-12 8:27 
AnswerRe: fuzzy logic code Pinmemberrobot2920-Dec-12 9:17 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140814.1 | Last Updated 21 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid