Click here to Skip to main content
15,900,724 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: string or int? Pin
David Crow14-Sep-07 4:23
David Crow14-Sep-07 4:23 
QuestionUnsure of reason for error. Pin
Chris Meech14-Sep-07 4:02
Chris Meech14-Sep-07 4:02 
AnswerRe: Unsure of reason for error. Pin
jhwurmbach14-Sep-07 4:07
jhwurmbach14-Sep-07 4:07 
GeneralRe: Unsure of reason for error. Pin
Chris Meech14-Sep-07 4:40
Chris Meech14-Sep-07 4:40 
GeneralRe: Unsure of reason for error. Pin
jhwurmbach14-Sep-07 4:46
jhwurmbach14-Sep-07 4:46 
AnswerRe: Unsure of reason for error. Pin
Mark Salsbery14-Sep-07 7:04
Mark Salsbery14-Sep-07 7:04 
GeneralRe: Unsure of reason for error. Pin
Chris Meech14-Sep-07 7:29
Chris Meech14-Sep-07 7:29 
Questiondo you think you raelly know the difference of public and private? Pin
includeh1014-Sep-07 3:47
includeh1014-Sep-07 3:47 
sometimes I got a big suprise by my lovely C++.

here is an example:

class My
{
public:
	int i;

public:
	void abc()
	{
	}
};

My my[]=
{
	3,
	2,
	1,
};


code above is correct.
but if I change second public to private for above My class, compile error happened:
error C2440: 'initializing' : cannot convert from 'const int' to 'class My'

why?
QuestionRe: do you think you raelly know the difference of public and private? Pin
Nelek14-Sep-07 4:07
protectorNelek14-Sep-07 4:07 
QuestionRe: do you think you raelly know the difference of public and private? Pin
Maximilien14-Sep-07 4:10
Maximilien14-Sep-07 4:10 
AnswerRe: do you think you raelly know the difference of public and private? Pin
nbugalia14-Sep-07 4:34
nbugalia14-Sep-07 4:34 
AnswerRe: do you think you raelly know the difference of public and private? Pin
Russell'14-Sep-07 7:23
Russell'14-Sep-07 7:23 
GeneralRe: do you think you raelly know the difference of public and private? Pin
Nelek17-Sep-07 19:48
protectorNelek17-Sep-07 19:48 
GeneralRe: do you think you raelly know the difference of public and private? Pin
Russell'17-Sep-07 21:38
Russell'17-Sep-07 21:38 
QuestionGetting the following error Pin
Maynka14-Sep-07 3:11
Maynka14-Sep-07 3:11 
AnswerRe: Getting the following error Pin
jhwurmbach14-Sep-07 3:24
jhwurmbach14-Sep-07 3:24 
QuestionRe: Getting the following error Pin
Mark Salsbery14-Sep-07 7:08
Mark Salsbery14-Sep-07 7:08 
AnswerRe: Getting the following error Pin
David Crow14-Sep-07 9:16
David Crow14-Sep-07 9:16 
AnswerRe: Getting the following error Pin
Hamid_RT14-Sep-07 19:16
Hamid_RT14-Sep-07 19:16 
Questionhow to use image at button label Pin
Y_Kaushik14-Sep-07 2:20
Y_Kaushik14-Sep-07 2:20 
AnswerRe: how to use image at button label Pin
nbugalia14-Sep-07 2:54
nbugalia14-Sep-07 2:54 
AnswerRe: how to use image at button label Pin
David Crow14-Sep-07 2:54
David Crow14-Sep-07 2:54 
AnswerRe: how to use image at button label Pin
Hamid_RT14-Sep-07 19:17
Hamid_RT14-Sep-07 19:17 
QuestionHow to stop another exe from current project. Pin
shivditya14-Sep-07 1:27
shivditya14-Sep-07 1:27 
AnswerRe: How to stop another exe from current project. Pin
nbugalia14-Sep-07 1:39
nbugalia14-Sep-07 1:39 

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.