Click here to Skip to main content
15,884,730 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Need Help for Set Theory, for college class! Pin
CPallini26-Oct-13 10:37
mveCPallini26-Oct-13 10:37 
GeneralRe: Need Help for Set Theory, for college class! Pin
B-Sho26-Oct-13 13:04
B-Sho26-Oct-13 13:04 
Questiondeveloping a c code Pin
Member 1032946724-Oct-13 20:48
Member 1032946724-Oct-13 20:48 
QuestionRe: developing a c code Pin
Richard MacCutchan24-Oct-13 21:31
mveRichard MacCutchan24-Oct-13 21:31 
SuggestionRe: developing a c code Pin
David Crow25-Oct-13 3:34
David Crow25-Oct-13 3:34 
AnswerRe: developing a c code Pin
jschell25-Oct-13 10:20
jschell25-Oct-13 10:20 
AnswerRe: developing a c code Pin
Captain Price26-Oct-13 3:29
professionalCaptain Price26-Oct-13 3:29 
QuestionReturning Struct from a function Pin
Don Guy24-Oct-13 8:52
Don Guy24-Oct-13 8:52 
Hello all,

In my Header file:

class MyData
{
struct Fparams
{
int i;
bool flag;
};
}

Now in CPP file:

void MyData::GetData()
{
Fparams fParam;
fparam = AllData();
}

MyData::Fparams MyData::AllData()
{
Fparams fparam;
fparam.i = 5;
fparam.flag = true;

return fparam;
}

Now i get an error saying - error: no match for 'operator=' in fparam = AllData(); ........

What's wrong here? How can i fix this?

Thanks in advance.
AnswerRe: Returning Struct from a function Pin
Aescleal24-Oct-13 9:49
Aescleal24-Oct-13 9:49 
AnswerRe: Returning Struct from a function Pin
Richard Andrew x6424-Oct-13 9:51
professionalRichard Andrew x6424-Oct-13 9:51 
GeneralRe: Returning Struct from a function Pin
Aescleal24-Oct-13 10:15
Aescleal24-Oct-13 10:15 
GeneralRe: Returning Struct from a function Pin
Don Guy24-Oct-13 12:22
Don Guy24-Oct-13 12:22 
AnswerRe: Returning Struct from a function Pin
Erudite_Eric24-Oct-13 11:16
Erudite_Eric24-Oct-13 11:16 
GeneralRe: Returning Struct from a function Pin
Aescleal24-Oct-13 11:22
Aescleal24-Oct-13 11:22 
GeneralRe: Returning Struct from a function Pin
Erudite_Eric1-Nov-13 3:39
Erudite_Eric1-Nov-13 3:39 
QuestionEcc implementation in hardware with c++ Pin
Member 1035328123-Oct-13 8:09
Member 1035328123-Oct-13 8:09 
AnswerRe: Ecc implementation in hardware with c++ Pin
Richard MacCutchan23-Oct-13 21:25
mveRichard MacCutchan23-Oct-13 21:25 
QuestionError: "Ilegal instruction" when running Hello world Pin
Member 1034193323-Oct-13 6:28
Member 1034193323-Oct-13 6:28 
QuestionWhat software are you using for learning programing ? Pin
lainsherry23-Oct-13 4:25
lainsherry23-Oct-13 4:25 
AnswerRe: What software are you using for learning programing ? Pin
Member 1035507523-Oct-13 4:29
Member 1035507523-Oct-13 4:29 
AnswerRe: What software are you using for learning programing ? Pin
Richard MacCutchan23-Oct-13 5:51
mveRichard MacCutchan23-Oct-13 5:51 
GeneralRe: What software are you using for learning programing ? Pin
lainsherry23-Oct-13 7:15
lainsherry23-Oct-13 7:15 
AnswerRe: What software are you using for learning programing ? Pin
Thong LeTrung23-Oct-13 6:06
Thong LeTrung23-Oct-13 6:06 
GeneralRe: What software are you using for learning programing ? Pin
lainsherry23-Oct-13 7:16
lainsherry23-Oct-13 7:16 
AnswerRe: What software are you using for learning programing ? Pin
Captain Price23-Oct-13 6:35
professionalCaptain Price23-Oct-13 6: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.