Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
Please help me with this C++ program , it gives an error in VS C++ 2005 !?
the code is as follows
#include <iostream.h>
#include<conio.h>
#include<iomanip.h>
class add
{
int a;
int b;
int c;
public:
void getdata()
{
cout<<"\n Enter values of a,b,c";
cin>>a>>b>>c;
}
void procdata()
{
c=a+b;
}
void putdata()
{
cout<<"\n Addition ="<<c;
}
};
void main()
{
add x,y;
clrscr();
x.getdata;
y.getdata();
x.procdata();
y.procdata;
x.putdata;
y.putdata;
getch();
}
It gives the following error while running in Visual Studio C++ 2005
Error 1 fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory c:\Documents and Settings\Admin\My Documents\Visual Studio 2005\Projects\c - PROG\c - PROG\Visual.cpp 1
Please help
I am new at using VC++ 2005
3 Answers
- tbshmkrLv 71 decade agoFavorite Answer
iostream.h is not installed in the expected path/directory.
=
Reinstall Visual Studio C++ 2005
- FunSunLv 51 decade ago
Try to search for the iostream.h file in your computer. Then note the location of that file.
If the directory it's in is C:\......\include\i386\iostream.h, then change the include statement to
#include <i386/iostream.h> or the directory name it's in.
If forward slash doesn't work, try with backslash(\ or \\).
- ?Lv 45 years ago
Hii....... i think of u are utilising VB.60 of seen stuio. From ur blunders message, it shows tat u r attempting to hook up with a sq. database, to no longer an excel's. So jus take care in picking the thoughts interior the " connect " components of ur documents, jus decide on the perfect version of excel, that u r utilising, additionally be careful in picking ur recordset. desire it fairly works u might ceremony 2 me