سلام عليكم
يا ليت اساعدني في حل هذا السؤال
![]()
بغينه لو سمحتوون الاشياء المحذوفه في المقرر
المفروض يفتحون لينه الموقع علشان نعرف مايصير جديه؟؟؟
اتممنى اتردوون عليي
int * p;
int x;
p=&x;
cout<<p;
cout<<&p;
x=100;
cout<<x;
cout<<*p;
*p=200;
cout<<*P;
cout<<x;
new int;
int * p;
p=new int;
p=new int[4];
delete p;
int* ip;
ip = new int[100];
delete [] ip;
int operate (int a, int b)
{
return (a*b);
}
float operate (float a, float b)
{
return (a/b);
}
int main ()
{
int x=5,y=2;
float n=5.0,m=2.0;
cout << operate (x,y);
cout << "\n";
cout << operate (n,m);
cout << "\n";
return 0;
}
10
2.5
T max(T a,T b)
{
if(a>b)
return a;
else return b;
}
void main()
{
cout<<max(4,2);
cout<<max(11.4,58.15);
cout<<max('a','y');
}