White Devil
Member
- تاريخ التسجيل
- 9 سبتمبر 2011
- المشاركات
- 9
- المجموعة
- ذكر
- الدفعة الدراسية
- 2011
- الكلية
- كلية تقنية المعلومات
- التخصص
- هندسة الحاسوب
السلام عليكم ,
بس عندي سؤال مو متأكد منه ,
midterm
2012-2013
Part C
Write a function named displayTopRating that takes as parameters: an array of Type bookType and the number of books in the array .
The function should print the titles of all books with high rating , i.e. books with a rating = 10
(The function prototype is : void displayTopRating(booktype list[] , int size
يقصد booktype class
and rate from 0 to 10
والمطلوب عند 10
and class definition is :
وهذا حلي ,
ياريت تشوفون وين الخطأ :tears::tears:
بس عندي سؤال مو متأكد منه ,
midterm
2012-2013
Part C
Write a function named displayTopRating that takes as parameters: an array of Type bookType and the number of books in the array .
The function should print the titles of all books with high rating , i.e. books with a rating = 10
(The function prototype is : void displayTopRating(booktype list[] , int size
يقصد booktype class
and rate from 0 to 10
والمطلوب عند 10
and class definition is :
كود:
[/LEFT]
class booktype {
private:
string title ;
int rate ;
string authorName;
public :
-----------
-----------
[LEFT]
كود:
[CENTER]}(void booktype ::displayTopRating(booktype list[],int size
for (int i=0 ; i<size ; i++ ) {
if (list[i].rate==10)
cout<<list[i].title<<endl;
}
}[/CENTER]
ياريت تشوفون وين الخطأ :tears::tears:
