i used to write programs in Visual C++, now i need help in
Unix environment.
when i do include the conio.h library and try to use the getche function, at compile time i get an error message that
the library does not exist.
Should i use another library? or other function?
my programs is a beginner one:
#include <conio.h>
#include <iostream.h>
void main()
{
char name[20],ch;int age;long tel_num;
clrscr();
do
{
cout<<"enter your name,age,and telephone number:"<<endl;
cin>>name>>age>>tel_num ;
cout<<"my name:"<<name<<endl<<"my age:"<<age<<endl<<"my telephone:"<<
tel_num<<endl;
cout<<"press a key to continue"<<endl;
getche();
cout<<"is the information correct?"<<endl;
}while((ch=getch())=='n');
}
thanks in advance
Unix environment.
when i do include the conio.h library and try to use the getche function, at compile time i get an error message that
the library does not exist.
Should i use another library? or other function?
my programs is a beginner one:
#include <conio.h>
#include <iostream.h>
void main()
{
char name[20],ch;int age;long tel_num;
clrscr();
do
{
cout<<"enter your name,age,and telephone number:"<<endl;
cin>>name>>age>>tel_num ;
cout<<"my name:"<<name<<endl<<"my age:"<<age<<endl<<"my telephone:"<<
tel_num<<endl;
cout<<"press a key to continue"<<endl;
getche();
cout<<"is the information correct?"<<endl;
}while((ch=getch())=='n');
}
thanks in advance