Click here to Skip to main content
15,904,935 members
Home / Discussions / Managed C++/CLI
   

Managed C++/CLI

 
GeneralRe: C++ classes for CSV database Pin
simplysanju15-Sep-05 21:32
simplysanju15-Sep-05 21:32 
QuestionProgramming "Language" Pin
LiYS13-Sep-05 23:39
LiYS13-Sep-05 23:39 
AnswerRe: Programming "Language" Pin
Christian Graus14-Sep-05 11:27
protectorChristian Graus14-Sep-05 11:27 
QuestionSOAP Client - Create Instance problem - invalid pointer Pin
leventozgur13-Sep-05 22:33
leventozgur13-Sep-05 22:33 
AnswerRe: SOAP Client - Create Instance problem - invalid pointer Pin
prasad_som14-Sep-05 3:09
prasad_som14-Sep-05 3:09 
Questionwhat the hell is this and why Pin
keshava shukla13-Sep-05 19:08
keshava shukla13-Sep-05 19:08 
AnswerRe: what the hell is this and why Pin
toxcct13-Sep-05 21:09
toxcct13-Sep-05 21:09 
AnswerRe: what the hell is this and why Pin
bugDanny15-Sep-05 8:27
bugDanny15-Sep-05 8:27 
keshava shukla wrote:
int a =10;
printf("%d %d %d",a++,a++,a++);

returns o/p
12 11 10


Funny. I tested this and what I got to print out was:

10 10 10

That would be the behavior I would expect, since those are postfix (++) operators, they should be incremented after the printf() expression. I made sure and put a

cout << a;

statement after the printf() statement, and sure enough a was 13. Are you using C, or C++. The ++ is much more unpredictable in C. As the other person that responded said, just don't do it. If you have to, make three extra values, like a1, a2, a3, and increment a and assign it to each of those values and pass those into printf.

Danny
GeneralRe: what the hell is this and why Pin
keshava shukla12-Oct-05 10:26
keshava shukla12-Oct-05 10:26 
QuestionHow to write c++ prog in MSVisual Studio.net2003? Pin
mcnu13-Sep-05 6:05
mcnu13-Sep-05 6:05 
AnswerRe: How to write c++ prog in MSVisual Studio.net2003? Pin
Christian Graus13-Sep-05 12:11
protectorChristian Graus13-Sep-05 12:11 
GeneralRe: How to write c++ prog in MSVisual Studio.net2003? Pin
mcnu13-Sep-05 15:19
mcnu13-Sep-05 15:19 
Questionwhy the function didn`t working? Pin
mcnu13-Sep-05 3:06
mcnu13-Sep-05 3:06 
AnswerRe: why the function didn`t working? Pin
Cedric Moonen13-Sep-05 3:53
Cedric Moonen13-Sep-05 3:53 
AnswerRe: why the function didn`t working? Pin
toxcct13-Sep-05 4:38
toxcct13-Sep-05 4:38 
GeneralRe: why the function didn`t working? Pin
mcnu13-Sep-05 5:54
mcnu13-Sep-05 5:54 
GeneralRe: why the function didn`t working? Pin
Cedric Moonen13-Sep-05 20:24
Cedric Moonen13-Sep-05 20:24 
GeneralRe: why the function didn`t working? Pin
toxcct13-Sep-05 21:12
toxcct13-Sep-05 21:12 
QuestionC1010 Error Pin
cjbaltar12-Sep-05 16:43
cjbaltar12-Sep-05 16:43 
AnswerRe: C1010 Error Pin
Christian Graus12-Sep-05 16:53
protectorChristian Graus12-Sep-05 16:53 
GeneralRe: C1010 Error Pin
cjbaltar12-Sep-05 17:36
cjbaltar12-Sep-05 17:36 
GeneralRe: C1010 Error Pin
Christian Graus12-Sep-05 17:42
protectorChristian Graus12-Sep-05 17:42 
QuestionThree Ques Pin
LiYS12-Sep-05 5:57
LiYS12-Sep-05 5:57 
AnswerRe: Three Ques Pin
Christian Graus12-Sep-05 12:36
protectorChristian Graus12-Sep-05 12:36 
GeneralRe: Three Ques Pin
LiYS12-Sep-05 15:13
LiYS12-Sep-05 15:13 

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.