Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

while running C prog, I get conio.h header file error

807578Sep 30 2010 — edited Oct 1 2010
Dear All

I am new to c programing in solaris. I have install the SUN STUDIO 12. I can compile normal C programs through gcc or cc command but when I run following program with <conio.h> header file , I get error say like conio.h doesn't exit means I get error related to "clrscr()" & "getch()" function. I have little bit worked on Turbo C in windows. If suppose below content are store in abc.c file

#include<stdio.h>
#include<conio.h>
void main()
(
clrscr();
print("Enter three number");
int x,y,z,a;
scanf("%d%d%d",&x,&y,&z);
a=x+y+z;
printf(" Sum of three numbers are %d',a);
}


I am getting same kind of errors in math.h & graphics.h header files also.

Please help me in this issue
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 29 2010
Added on Sep 30 2010
3 comments
903 views