how can i display :
int x,y,p;
y=10;
p=3;
x=y+p;
printf(" sum = %d",x); in graphics mode ( graphics.h)
or which function can do this job?
mars key
to mars and beyond
Download this as a file
how can i display :
int x,y,p;
y=10;
p=3;
x=y+p;
printf(" sum = %d",x); in graphics mode ( graphics.h)
or which function can do this job?
mars key
to mars and beyond
Download this as a file
Use outtext or outtextxy functions. Prepare a text string with
char text[80]; /* */
...
sprintf(text," sum = %d",x);
outtext(text);
See BGI functions manual. Online version for extended BGI:
http://www.cs.colorado.edu/~main/cs1300/doc/bgi/index.html
Search Google for more info.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.