Click here to Skip to main content
16,006,378 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
QuestionHelp with precompiled headers needed!! Pin
Ben Page4-Sep-05 21:49
Ben Page4-Sep-05 21:49 
AnswerRe: Help with precompiled headers needed!! Pin
Neagoe Gabriel5-Sep-05 4:41
Neagoe Gabriel5-Sep-05 4:41 
GeneralRe: Help with precompiled headers needed!! Pin
therealcombat5-Sep-05 8:32
therealcombat5-Sep-05 8:32 
GeneralRe: Help with precompiled headers needed!! Pin
BenPage7-Sep-05 3:08
BenPage7-Sep-05 3:08 
Questionclasses c++ project help Pin
da_comp_learner4-Sep-05 21:43
da_comp_learner4-Sep-05 21:43 
GeneralRe: classes c++ project help Pin
toxcct4-Sep-05 22:35
toxcct4-Sep-05 22:35 
AnswerRe: classes c++ project help Pin
da_comp_learner5-Sep-05 17:10
da_comp_learner5-Sep-05 17:10 
Question++ operator Pin
LiYS4-Sep-05 20:11
LiYS4-Sep-05 20:11 
class A
{
	int i;
public:
	A(int ii):i(ii){}
	int operator ++()
	{
		return ++i;	
	}	
	int operator ++(int)
	{
		int ntemp;
		ntemp = i;
		++i;
		return ntemp;
	}
	int geti(){return i;}
};

int main()
{
	A a(2);
	cout <<	a++ << endl
		 << a.geti() << endl;
	getchar();
}


Why the result is "2, 2" instead of "2, 3". a++ seems doesn't operate on A::i?



AnswerRe: ++ operator Pin
toxcct4-Sep-05 20:57
toxcct4-Sep-05 20:57 
GeneralRe: ++ operator Pin
LiYS4-Sep-05 21:00
LiYS4-Sep-05 21:00 
GeneralRe: ++ operator Pin
toxcct4-Sep-05 21:04
toxcct4-Sep-05 21:04 
GeneralRe: ++ operator Pin
LiYS4-Sep-05 21:18
LiYS4-Sep-05 21:18 
GeneralRe: ++ operator [edited] Pin
toxcct4-Sep-05 21:27
toxcct4-Sep-05 21:27 
GeneralRe: ++ operator Pin
LiYS4-Sep-05 22:02
LiYS4-Sep-05 22:02 
GeneralRe: ++ operator Pin
toxcct4-Sep-05 22:24
toxcct4-Sep-05 22:24 
GeneralRe: ++ operator [edited] Pin
Zdeslav Vojkovic6-Sep-05 4:18
Zdeslav Vojkovic6-Sep-05 4:18 
GeneralRe: ++ operator [edited] Pin
LiYS6-Sep-05 15:52
LiYS6-Sep-05 15:52 
GeneralRe: ++ operator [edited] Pin
LiYS6-Sep-05 15:54
LiYS6-Sep-05 15:54 
GeneralRe: ++ operator [edited] Pin
Zdeslav Vojkovic7-Sep-05 21:12
Zdeslav Vojkovic7-Sep-05 21:12 
AnswerRe: ++ operator Pin
Zdeslav Vojkovic6-Sep-05 5:29
Zdeslav Vojkovic6-Sep-05 5:29 
GeneralRe: ++ operator Pin
LiYS6-Sep-05 15:29
LiYS6-Sep-05 15:29 
QuestionJpeg files using C++ Pin
Jomy John3-Sep-05 16:54
Jomy John3-Sep-05 16:54 
AnswerRe: Jpeg files using C++ Pin
Christian Graus4-Sep-05 10:45
protectorChristian Graus4-Sep-05 10:45 
GeneralRe: Jpeg files using C++ Pin
Jomy John11-Sep-05 13:58
Jomy John11-Sep-05 13:58 
GeneralRe: Jpeg files using C++ Pin
Christian Graus11-Sep-05 14:00
protectorChristian Graus11-Sep-05 14:00 

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.