Thursday, July 9, 2009

How can i call a variable from turbo c++ and place it in printf?

this is a partial code that i made "if (M==1)


TMP=100;" so my variable is TMP. how can i get it to the printf command???

How can i call a variable from turbo c++ and place it in printf?
cout%26lt;%26lt;TMP;
Reply:if (m==1)


tmp=100;


cout%26lt;%26lt;"tmp="%26lt;%26lt;tmp%26lt;%26lt;endl;


No comments:

Post a Comment