X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: "Per" Newsgroups: comp.os.msdos.djgpp Subject: include conio and math Date: Wed, 6 Oct 2004 16:08:34 +0200 Lines: 102 Message-ID: NNTP-Posting-Host: du-64-177.ppp.telenordia.se X-Trace: yggdrasil.glocalnet.net 1097070992 8131 62.127.64.177 (6 Oct 2004 13:56:32 GMT) X-Complaints-To: abuse AT glocalnet DOT net NNTP-Posting-Date: 6 Oct 2004 13:56:32 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hi again! I solved the problem by changing as downbelow. I saw this on an earlier answer. #include using namespace std; int main(void) { cout << "hello" << endl; return 0; } However I tested with a new program and this time conio and math does not work. I am using version 3.42 and C:\cbl\lab\nyalab>gpp -o i.exe i.cc i.cc:8:17: conio: No such file or directory (ENOENT) i.cc:10:16: math: No such file or directory (ENOENT) i.cc: In function `int main()': i.cc:20: error: `clrscr' undeclared (first use this function) i.cc:20: error: (Each undeclared identifier is reported only once for each funct ion it appears in.) i.cc:29: error: `getch' undeclared (first use this function) i.cc: In function `void calculate(double)': i.cc:65: error: `sqrt' undeclared (first use this function) #include using namespace std; #include #include #include #define ESC 27 double readIn(); void calculate(double number); int main() { do { clrscr(); double number; while(number>0) { clrscr(); number = readIn(); calculate(number); } }while(getch()!=27); return 0; } double readIn() { double number; cout << " STATISTIKCALCULATION\n"; cout << "====================\n"; cout << "\n\nEnter in number : "; cin >> number; cout <