Hey guys, i'm new to C++, using Turbo C++, whenever i try to compile my prg, it gives me an error saying - ""Unable to open include file 'iostream.h'""
I've specified the directories correctly and the C++ installation is fine(worked on another comp) ....
What do i do ? :S ...
EDIT : haha ... lame mistake ... wrong drive in directory path ...
anyway, i still got one error -
#include<iostream.h>
#include<conio.h>
void main ();
{
clrscr();
float i,r,t,p,a;
cout<<"Welcome to the SI calculator. Press any key to continue...";
cin>>a;
cout<<"Please enter the Rate of interest per annum - "
cin>>r;
cout<<"Please enter the Principal - "
cin>>p;
cout<<"Please enter the Time in years - "
cin>>t;
i=p*r*t/100;
cout<<"The Simple Interest is "<<i;
getch;
}
I've specified the directories correctly and the C++ installation is fine(worked on another comp) ....
What do i do ? :S ...
EDIT : haha ... lame mistake ... wrong drive in directory path ...
anyway, i still got one error -
#include<iostream.h>
#include<conio.h>
void main ();
{
clrscr();
float i,r,t,p,a;
cout<<"Welcome to the SI calculator. Press any key to continue...";
cin>>a;
cout<<"Please enter the Rate of interest per annum - "
cin>>r;
cout<<"Please enter the Principal - "
cin>>p;
cout<<"Please enter the Time in years - "
cin>>t;
i=p*r*t/100;
cout<<"The Simple Interest is "<<i;
getch;
}