Click here to Skip to main content
15,891,688 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to set Image' Document Size ? Pin
Chris Losinger10-Sep-12 1:11
professionalChris Losinger10-Sep-12 1:11 
QuestionHighlighting some text in CEdit Pin
Hadi Dayvary9-Sep-12 21:57
professionalHadi Dayvary9-Sep-12 21:57 
AnswerRe: Highlighting some text in CEdit Pin
_Flaviu10-Sep-12 19:31
_Flaviu10-Sep-12 19:31 
GeneralRe: Highlighting some text in CEdit Pin
Hadi Dayvary10-Sep-12 22:33
professionalHadi Dayvary10-Sep-12 22:33 
QuestionNON-SCALAR TYPE CONVERSION!? Pin
Jorgmen9-Sep-12 8:58
Jorgmen9-Sep-12 8:58 
AnswerRe: NON-SCALAR TYPE CONVERSION!? Pin
enhzflep9-Sep-12 9:40
enhzflep9-Sep-12 9:40 
AnswerRe: NON-SCALAR TYPE CONVERSION!? Pin
pasztorpisti9-Sep-12 9:52
pasztorpisti9-Sep-12 9:52 
AnswerRe: NON-SCALAR TYPE CONVERSION!? Pin
Jorgmen9-Sep-12 10:52
Jorgmen9-Sep-12 10:52 
Thaks for your replays:
now i have a new q?

C++
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!? Pin
enhzflep9-Sep-12 12:33
enhzflep9-Sep-12 12:33 
AnswerRe: NON-SCALAR TYPE CONVERSION!? Pin
Chuck O'Toole9-Sep-12 12:39
Chuck O'Toole9-Sep-12 12:39 
GeneralRe: NON-SCALAR TYPE CONVERSION!? Pin
pasztorpisti9-Sep-12 14:07
pasztorpisti9-Sep-12 14:07 
GeneralRe: NON-SCALAR TYPE CONVERSION!? Pin
pasztorpisti9-Sep-12 14:09
pasztorpisti9-Sep-12 14:09 
AnswerRe: NON-SCALAR TYPE CONVERSION!? Pin
«_Superman_»9-Sep-12 18:51
professional«_Superman_»9-Sep-12 18:51 
QuestionDocking Pane with CHtmlView repaint problem. Pin
sdancer759-Sep-12 0:03
sdancer759-Sep-12 0:03 
AnswerRe: Docking Pane with CHtmlView repaint problem. Pin
_Flaviu10-Sep-12 19:45
_Flaviu10-Sep-12 19:45 
GeneralRe: Docking Pane with CHtmlView repaint problem. Pin
sdancer7510-Sep-12 20:10
sdancer7510-Sep-12 20:10 
QuestionPaint text on Microsoft Windows desktop Pin
Brandon-X120008-Sep-12 4:46
Brandon-X120008-Sep-12 4:46 
QuestionRe: Paint text on Microsoft Windows desktop Pin
David Crow8-Sep-12 17:37
David Crow8-Sep-12 17:37 
AnswerRe: Paint text on Microsoft Windows desktop Pin
Brandon-X120009-Sep-12 12:58
Brandon-X120009-Sep-12 12:58 
GeneralRe: Paint text on Microsoft Windows desktop Pin
Richard Andrew x6410-Sep-12 5:09
professionalRichard Andrew x6410-Sep-12 5:09 
QuestionDifference between Variable Definition and Declaration Pin
Rahul Allen7-Sep-12 10:47
Rahul Allen7-Sep-12 10:47 
AnswerRe: Difference between Variable Definition and Declaration Pin
Richard Andrew x647-Sep-12 12:13
professionalRichard Andrew x647-Sep-12 12:13 
GeneralRe: Difference between Variable Definition and Declaration Pin
pasztorpisti7-Sep-12 12:26
pasztorpisti7-Sep-12 12:26 
GeneralRe: Difference between Variable Definition and Declaration Pin
Richard Andrew x647-Sep-12 12:27
professionalRichard Andrew x647-Sep-12 12:27 
AnswerRe: Difference between Variable Definition and Declaration Pin
pasztorpisti7-Sep-12 12:18
pasztorpisti7-Sep-12 12:18 

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.