fatal error!

okay so it tells me:
fatal error LNK1169: one or more multiply defined symbols found
im new in this sorry

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
  #include <iostream>
#include <string>
using namespace std;
void ReverseInputDigit (int I);
void SumDigit (int S);
int main ()
{
int I=0,S=0;
char f;
cout<<"please insert"<<endl;
cout<<"I for calculating Reverse Input Digit or S for calculating the summation of the digits"<<endl;
cin>>f;
if(f == 'I')
{
ReverseInputDigit (I);
}
if(f == 'S')
{
SumDigit (S);
}
return 0;	

}
void ReverseInputDigit (int I)
{
cout<<"Please insert a number to reverse: ";
cin>>I;
cout<<"The reverse of "<<I<<" is " <<I % 10<<(I/10) % 10<<(I/100) % 10<<(I/1000) % 10<<(I/10000)% 10<<endl;//just 5 places!//
}
void SumDigit (int S)
{
cout<<"Please insert a any number "<<endl;
cin>>S;
cout<<"The summation of "<<S<< " is "<< (S % 10)+((S/10) % 10)+((S/100) % 10)+((S/1000) % 10)+((S/10000)% 10)<<endl;//just 5 places!//
}
Last edited on
Code you provided compiles succesfully. Problem lies somewhere else.
thanks ....... i just changed the project and it work!
Topic archived. No new replies allowed.