الفريق العربي للبرمجةأرشيف المنتديات · 2000 – 2023
نسخة أرشيفية للقراءة فقط — التسجيل والمشاركة مغلقان، والمحتوى محفوظ كما كان.

[ تمت الإجابة ]شباب ممكن تقولولي إيش الخطأ في هذا الكود ؟

بدأه Mohammed Jalal في 4 يونيو 2008 · 3 رد · 613 مشاهدة · في الأسئلة المجابة
مشاركة: واتساب X فيسبوك تيليجرام
#1 صاحب الموضوع

Please :

#include<iostream.h>

int double(int original);

float double(float original);

double double(double original);

int main ()

{

int x= 5;

float y= 5.5;

double z= 5.5e10;

int doubleInteger=double(x);

float doubleFloat=double(y);

double doubleDouble=double(z);

cout<<"The double of the integer is : " <<doubleInteger<<endl<<endl;

cout<<"The double of the float is : "<<doubleFloat<<endl<<endl;

cout<<"The double of the double is : "<<doubleDouble<<endl<<endl;

system("PAUSE");

return 0;

}

int double(int original)

{

return original*2;

}

float double (float original )

{

return original * 2;

}

double double (double original)

{

return original*2;

}

Thank you

تم تعديل هذه المشاركة بواسطة Mohammed Jalal في 4 يونيو 2008 في 08:08

#2

السلام عليكم خطاءك في تسمية الدالة باسم اصلا محجوز.

[background=#FCBA1A]

#include<iostream.h>

int my_double(int original);

float my_double(float original);

double my_double(double original);

int main ()

{

int x= 5;

float y= 5.5;

double z= 5.5e10;

int doubleInteger=double(x);

float doubleFloat=double(y);

double doubleDouble=double(z);

cout<<"The double of the integer is : " <<doubleInteger<<endl<<endl;

cout<<"The double of the float is : "<<doubleFloat<<endl<<endl;

cout<<"The double of the double is : "<<doubleDouble<<endl<<endl;

system("PAUSE");

return 0;

}

int my_double(int original)

{

return original*2;

}

float my_double (float original )

{

return original * 2;

}

double my_double (double original)

{

return original*2;

}


[/background]
tvquran_6.gif

#3

تسلم حبيب قلبي

وشكرا جزيلا

سلام

#4

بسم الله الرحمن الرحيم

تمت الإجابة على الموضوع

إدارة الفريق العربي للبرمجة

[وسط]

♥ Countess ♥

57899411.gif

♥

[/وسط]

مواضيع مشابهة

عدد الزوار حالياً

المتواجدون خلال آخر دقيقتين · يتحدّث كل ٣٠ ثانية

—الإجمالي—أعضاء مسجّلون—زوار بدون تسجيل

جارٍ التحقق من المتواجدين…