質問

The order of print something in turbo c++ in graphic mode is :

outtextxy(xmid,ymid,"...")

but I wanna print the value of a variable.what should I use?

役に立ちましたか?

解決

Something like this

char msg[128];
sprintf(msg, "variable=%d", variable);
outtextxy(xmin, ymid, msg);
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top