Click here to Skip to main content
       

C / C++ / MFC

 
AnswerRe: File download help Pinmembersunilkpv10-Sep-12 19:04 
GeneralRe: File download help PinmemberFlaviu210-Sep-12 21:01 
QuestionRe: File download help PinmemberDavidCrow11-Sep-12 3:06 
QuestionHow to set Image' Document Size ? Pinmemberyogeshs9-Sep-12 22:18 
AnswerRe: How to set Image' Document Size ? Pinmemberpasztorpisti9-Sep-12 23:10 
GeneralRe: How to set Image' Document Size ? Pinmemberyogeshs9-Sep-12 23:32 
GeneralRe: How to set Image' Document Size ? PinmemberChris Losinger10-Sep-12 1:11 
QuestionHighlighting some text in CEdit PinmemberHadi Dayvary9-Sep-12 21:57 
AnswerRe: Highlighting some text in CEdit PinmemberFlaviu210-Sep-12 19:31 
GeneralRe: Highlighting some text in CEdit PinmemberHadi Dayvary10-Sep-12 22:33 
QuestionNON-SCALAR TYPE CONVERSION!? PinmemberJorgmen9-Sep-12 8:58 
AnswerRe: NON-SCALAR TYPE CONVERSION!? Pinmemberenhzflep9-Sep-12 9:40 
AnswerRe: NON-SCALAR TYPE CONVERSION!? Pinmemberpasztorpisti9-Sep-12 9:52 
AnswerRe: NON-SCALAR TYPE CONVERSION!? PinmemberJorgmen9-Sep-12 10:52 
Thaks for your replays:
now i have a new q?
 
 
struct Miembro{
int id;
int activo;
int pass;
 
Miembro(int a, int b, int c)
{
id = a;
activo = b;
pass = c;
}
};
 
struct NodoMiembro{
NodoMiembro * nextmiem;
NodoMiembro * prevmiem;
Miembro persona;
 
NodoMiembro(Miembro nuevo){
nextmiem = prevmiem = NULL;
persona = nuevo;
}
};
 
struct ListaMiembros{
NodoMiembro * lastmember;
NodoMiembro * firstmember;
 
ListaMiembros(){
lastmember = firstmember = NULL;
 
}
 
I can't compile this, I'm having headache because of c++: it says:
 
4 0 F:\main.cpp In file included from main.cpp
F:\structs.h In constructor 'NodoMiembro::NodoMiembro(Miembro)':

31 27 F:\structs.h [Error] no matching function for call to 'Miembro::Miembro()'
 
31 27 F:\structs.h [Error] candidates are:
 
17 1 F:\structs.h Miembro::Miembro(int, int, int)
 
17 1 F:\structs.h candidate expects 3 arguments, 0 provided
 
12 8 F:\structs.h Miembro::Miembro(const Miembro&)
 
12 8 F:\structs.h candidate expects 1 argument, 0 provided
 
F:\structs.h At global scope:
 
WHY NodoMiembro can't have a "Miembro xxx" as parameter in the constructor???
GeneralRe: NON-SCALAR TYPE CONVERSION!? Pinmemberenhzflep9-Sep-12 12:33 
AnswerRe: NON-SCALAR TYPE CONVERSION!? PinmemberChuck O'Toole9-Sep-12 12:39 
GeneralRe: NON-SCALAR TYPE CONVERSION!? Pinmemberpasztorpisti9-Sep-12 14:07 
GeneralRe: NON-SCALAR TYPE CONVERSION!? Pinmemberpasztorpisti9-Sep-12 14:09 
AnswerRe: NON-SCALAR TYPE CONVERSION!? Pinmember«_Superman_»9-Sep-12 18:51 
QuestionDocking Pane with CHtmlView repaint problem. Pinmembersdancer759-Sep-12 0:03 
AnswerRe: Docking Pane with CHtmlView repaint problem. PinmemberFlaviu210-Sep-12 19:45 
GeneralRe: Docking Pane with CHtmlView repaint problem. Pinmembersdancer7510-Sep-12 20:10 
QuestionPaint text on Microsoft Windows desktop PinmemberBrandon T. H.8-Sep-12 4:46 
QuestionRe: Paint text on Microsoft Windows desktop PinmemberDavidCrow8-Sep-12 17:37 
AnswerRe: Paint text on Microsoft Windows desktop PinmemberBrandon T. H.9-Sep-12 12:58 
GeneralRe: Paint text on Microsoft Windows desktop PinmemberRichard Andrew x6410-Sep-12 5:09 
QuestionDifference between Variable Definition and Declaration PinmemberRahul Allen7-Sep-12 10:47 
AnswerRe: Difference between Variable Definition and Declaration PinmemberRichard Andrew x647-Sep-12 12:13 
GeneralRe: Difference between Variable Definition and Declaration Pinmemberpasztorpisti7-Sep-12 12:26 
GeneralRe: Difference between Variable Definition and Declaration PinmemberRichard Andrew x647-Sep-12 12:27 
AnswerRe: Difference between Variable Definition and Declaration Pinmemberpasztorpisti7-Sep-12 12:18 
AnswerRe: Difference between Variable Definition and Declaration PinmemberDavidCrow8-Sep-12 17:41 
GeneralRe: Difference between Variable Definition and Declaration Pinmemberpasztorpisti10-Sep-12 22:29 
QuestionMFC Dialog with Progressbar cannot be launch in Window 7 PinmemberAndraw1116-Sep-12 11:27 
AnswerRe: MFC Dialog with Progressbar cannot be launch in Window 7 PinmemberAlbert Holguin6-Sep-12 12:06 
GeneralRe: MFC Dialog with Progressbar cannot be launch in Window 7 PinmemberAndraw1116-Sep-12 12:15 
AnswerRe: MFC Dialog with Progressbar cannot be launch in Window 7 PinmemberChuck O'Toole6-Sep-12 15:38 
GeneralRe: MFC Dialog with Progressbar cannot be launch in Window 7 PinmemberAndraw11110-Sep-12 9:19 
AnswerRe: MFC Dialog with Progressbar cannot be launch in Window 7 PinmemberAlbert Holguin7-Sep-12 9:58 
QuestionStructure Offsets PinmemberRichard Andrew x646-Sep-12 10:29 
QuestionRe: Structure Offsets PinmemberDavidCrow6-Sep-12 10:37 
AnswerRe: Structure Offsets PinmemberRichard Andrew x646-Sep-12 10:48 
AnswerRe: Structure Offsets PinmemberAlbert Holguin6-Sep-12 12:07 
AnswerRe: Structure Offsets PinmvpRichard MacCutchan6-Sep-12 21:59 
GeneralRe: Structure Offsets PinmemberRichard Andrew x647-Sep-12 9:42 
GeneralRe: Structure Offsets Pinmemberjschell7-Sep-12 10:33 
GeneralRe: Structure Offsets PinmemberRichard Andrew x647-Sep-12 10:35 
AnswerRe: Structure Offsets PinmemberPeter_in_27807-Sep-12 20:39 
GeneralRe: Structure Offsets PinmvpRichard MacCutchan12-Sep-12 3:40 
JokeRe: Structure Offsets PinmemberPeter_in_278012-Sep-12 10:44 

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
Web01 | 2.8.140827.1 | Last Updated 30 Aug 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid