Share
Explore BrainMass

Problem with Microsoft Visual C++ Cannot open include file

I have problem with Microsoft Visual Studio .Net 2003 C++
I can't run almost all of program that already worked. when I do "copy" and "past"
these programs in Microsoft Visual Studio .Net C++ , all these program send same error:

f:Assignment-1stdafx.cpp(9): fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory.

One of programs is:

#include<iostream.h>
#include<conio.h>
#include<string.h>
char xor(char a,char b)
{
if((a=='0' && b=='1') || (a=='1' && b=='0'))
return '1';
else
return '0';
}
void main()
{
clrscr();
int n,i=0;
char s[2][50];
cout<<"enter length-";cin>>n;
char *s1,*s2,*s_and,*s_or,*s_xor=new char[n];
cout<<"n Enter first bit string- ";cin>>s1;
cout<<"n Enter second bit string- ";cin>>s2;
while(n>0)
{
s_xor[i]=xor(s1[i],s2[i]);
s_and[i]=(s1[i]&s2[i]);
s_or[i]=s1[i]|s2[i];

n--;
i++;
}
s_and[i]='';
s_or[i]='';
s_xor[i]='';
cout<<s_or<<"(BITWISE OR)<<endl<<s_and<<"(BITWISE AND)"<<endl<<s_xor<<"(BITWISE XOR)";
getch();
}

please help me
thank you

Solution Preview

Your problem description as well as the program file is a little bit unclear. For example,
a) You have mentioned your programs already worked, but you have not mentioned if it worked ...

Solution Summary

Here you will learn how to fix Visual Studio .NET fatal error C1083: Cannot open include file: 'iostream.h': No such file or directory.

$2.19