Purchase Solution

Problem with VisualStudio.Net C++ (2003)

Not what you're looking for?

Ask Custom Question

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

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

These programs worked befor in another computer (VisualStudio.Net C++ (2003))

I asked to your friends who help me for a assignment. She/he sent this program:

#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();
}
But still I have same error.

I already asked question . He/she send this Email;

However, assuming you are having a problem with precompiled headers and you are not using any, try doing this. Go to Project->properties->Configuration properties->Precompiled Headers-> Create/use precompiled headers to Not using precompiled headers

But still doesn't work

Would you do a favor for me? Would you create a Visual C++ project and put this program in the folder and than send for me.

And also display for me what is my problem.
Thank you

Purchase this Solution

Solution Summary

A VisualStudio.Net C++ (2003) is discussed. A code is compiled.

Solution Preview

I have created a new VC++.net project for you and made your code to compile and to run.

As I can only guess what is it that you want to do in the program I have interfered only minimally - just to have the program to run.

The whole project is included in the attached zip file - you will have to compile it (cntrl-shift-B) before ...

Purchase this Solution


Free BrainMass Quizzes
Javscript Basics

Quiz on basics of javascript programming language.

Word 2010: Tables

Have you never worked with Tables in Word 2010? Maybe it has been a while since you have used a Table in Word and you need to brush up on your skills. Several keywords and popular options are discussed as you go through this quiz.

Inserting and deleting in a linked list

This quiz tests your understanding of how to insert and delete elements in a linked list. Understanding of the use of linked lists, and the related performance aspects, is an important fundamental skill of computer science data structures.

Basic UNIX commands

Use this quiz to check your knowledge of a few common UNIX commands. The quiz covers some of the most essential UNIX commands and their basic usage. If you can pass this quiz then you are clearly on your way to becoming an effective UNIX command line user.

C++ Operators

This quiz tests a student's knowledge about C++ operators.