عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
قديم 14-05-2010, 07:58 PM   #10

انعم من النواعم

جامعي

الصورة الرمزية انعم من النواعم

 
تاريخ التسجيل: Sep 2009
التخصص: الرياضيات
نوع الدراسة: إنتظام
المستوى: متخرج
الجنس: أنثى
المشاركات: 120
Skaau.com (25) رد: واجب مقدمة الحوسبه ابغاه اليوم ضروري ..ساعدوني تكفون

1- Write the output of the following program :


// The user will enter a name, age, best friend and best color, and the //program will display all deion in one line

# include <iostream>
# include <conio>

void main( )
{
char first[30], color[30], best[30];
int age,check=5;

while (check !=0)
{
cout << "\n enter first name : " ;
cin >> first;
cout<< "\n enter age : " ;
cin >> age;
cout << "\n enter favorite color:" ;
cin >> color;
cout << "\n enter best friend name : " ;
cin >> best;
cout << "\n" << first << " is " << age << " years old" <<endl;
cout << first << " likes the color " << color <<endl;
cout << first << "'s best friend is " << best <<endl;
cout << " \n to enter another name press 1, to exit press 0 ";
cin>> check;
}
cout << endl << " thank you for using my program :) " ;
getch();
}

عند كتابة مخرجات البرنامج اجعلي المستخدم يدخل البيانات ثلاث مرات..

ساعديني تكفين التسليم تومورو :(

مو فاهمه شي يعني اشرحي وفصلي وش اسوي .. الله يسعدك ياارب

 

انعم من النواعم غير متواجد حالياً   رد مع اقتباس