السلام عليكم
كيفكم اخواني
ممكن تساعدوني موعارفه ايش المشكله في هذا البرنامج مو راضي يطبق معي ..؟ واي منهم الحل الصحيح..؟
#include <iostream.h>
int Add( int x, int y );
float Add( float x, float y );
double Add( double x, int y );
float Add( int x, float y );
double Add( float x,int y,float z);
int main()
{
int x,int y;
float x,float y;
double x;
cout<< "Enter Tow Int Number : ";
cin>>IntX>>IntY;
cout<< "Enter Tow Float Number : ";
cin>>FloatX>>FloatY;
cout<< "Enter Double Number : ";
cin>>DoubleX;
cout<< Add( IntX, IntY ) <<endl;
cout<< Add( FloatX, FloatY ) <<endl;
cout<< Add( DoubleX, IntY ) <<endl;
cout<< Add( IntX, FloatY ) <<endl;
cout<< Add( FloatX, IntY , FloatY) <<endl;
return 0;
}#include <iostream.h>
int Add( int x, int y );
float Add( float x, float y );
double Add( double x, int y );
float Add( int x, float y );
double Add( float x,inty,float z);
int main()
{
intIntX,IntY;
floatFloatX,FloatY;
doubleDoubleX;
cout<< "Enter Tow Int Number : ";
cin>>IntX>>IntY;
cout<< "Enter Tow Float Number : ";
cin>>FloatX>>FloatY;
cout<< "Enter Double Number : ";
cin>>DoubleX;
cout<< Add( IntX, IntY ) <<endl;
cout<< Add( FloatX, FloatY ) <<endl;
cout<< Add( DoubleX, IntY ) <<endl;
cout<< Add( IntX, FloatY ) <<endl;
cout<< Add( FloatX, IntY , FloatY) <<endl;
return 0;
}
int Add( int x, int y )
{
return x + y;
}
float Add( float x, float y )
{
return x + y;
}
double Add( double x, int y )
{
return x + y;
}
float Add( int x, float y )
{
return x + y;
}
double Add( float x,inty,float z)
{
return x + y + z;
int Add( int x, int y );
float Add( float x, float y );
double Add( double x, int y );
float Add( int x, float y );
double Add( float x,inty,float z);
int main()
{
intIntX,IntY;
floatFloatX,FloatY;
doubleDoubleX;
cout<< "Enter Tow Int Number : ";
cin>>IntX>>IntY;
cout<< "Enter Tow Float Number : ";
cin>>FloatX>>FloatY;
cout<< "Enter Double Number : ";
cin>>DoubleX;
cout<< Add( IntX, IntY ) <<endl;
cout<< Add( FloatX, FloatY ) <<endl;
cout<< Add( DoubleX, IntY ) <<endl;
cout<< Add( IntX, FloatY ) <<endl;
cout<< Add( FloatX, IntY , FloatY) <<endl;
return 0;
}
int Add( int x, int y )
{
return x + y;
}
float Add( float x, float y )
{
return x + y;
}
double Add( double x, int y )
{
return x + y;
}
float Add( int x, float y )
{
return x + y;
}
double Add( float x,inty,float z)
{
return x + y + z;
}
