Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.
how to get the right position of showing entered value?
Please run this program, you will se the problem with the position of the value that you enter.
I dont know how to fix it
Help me plz.
[code]#include #include #include #include #include
/* request auto detection */
int gdriver = DETECT, gmode, errorcode;
/* initialize graphics and local variables */
initgraph(&gdriver, &gmode, "");
/* read result of initialization */
errorcode = graphresult();
if (errorcode != grOk) /* an error occurred */
printf("Graphics error: %s
printf("Press any key to halt:");
exit(1); /* terminate with an error code */
outtextxy(100,50,"enter number: "); //
cin >> a; //I want this value to be shown in a right place
//enter number: 1111
/* clean up */
0 · ·