I am executing all my c/c++ programs in VC++ cmpiler.
#include <iostream>
using namespace std;
int main()
{
int age;
char sex;
cout<<"please input your age:";
cout<<"please input your sex (M/F):";
cin>> age;
cin>> sex;
if (age < 100) {
cout<<"you are pretty young!\n";
}
else if (age ==100 && sex == 'm')
{
cout<<"you are pretty old,and you are male!\n";
}
else if (age ==100 && sex == 'f')
{
cout<<"you are pretty old, and u r a female!\n";
}
else
{
cout<<"You are relly old!\n";
}
}
When I try to execute the above program,it gave the following error.
fatal error LNK1169: one or more multiply defined symbols found.
I tried google.com to correct this error by myself.But I counldn’t figure it out.Please help me.