ممكن احد يشرح لي البوينتر ؟؟
شكرا اللي شرحت لنه الاوفر لودينغ كنت مو عارفته ...
بس انا مو سكشن 1
انا سكشن 4 ويا دكتورة نهله
انتي دكتورة نهله بعد ؟؟
يس يس![]()
مشكورة ااختي اخيرا قدرت افتح السؤال
هذي هو
Write a recursive function that finds and returns the sum of an array. PART A
int sum(int a[],int size);
PART B
Write a recursive function that prints a string backwards.
void backwards(char *s, int len);
PART C
Write a program (main function) to test the two functions.


يحراام السؤال كاامل احنا بس باارت Aسلاام عليكم شلونكم شخباركم
الي درسة دكتورة امل غانم يعطني سؤال الاسايمن الأخير لان ما ينفتح عندي
بليززز بسرعة لان باجر تسليم وانا لحد الآن ما دري شنو سؤال
ومشكورين ما تقصرون عساكم ع قوة
اخواتي واخواني ممكن احد يشرح لينا شبتر 17




void rec(int x)
{
if(x==0)return;
else
{
cout<<x<<endl;
rec(num-1);
}
سؤال:
من احسن دكتور ل 102
Dr. Ramzi Al-Majid
Dr. Mayyadah Faisal
بس هذلين اللي يناسني اوقاتهم
فقولوا ليي الافضل واذا كلهم مو زينينين بعد قولوا ليي عشان آخذ وايا سكشن مو مكتوب اسم
جبتر 17
جم محااضرة غايب
كله بسبب التستات
بقول ليكم اللي أعرفه, ان شاء الله يفيدكم,
الريكيرجن,
هو فنكشن, تسوي call حق نفسها,,
فيها شرط يوقفها, الـ call
يسمونه base case
يعني مثلاً
if(num==0)return;
و عندنا شي يسمونه general case
هو الـ case اللي يصير داخله call
يعني مثلاً هذا برنامج,,
PHP:void rec(int x)PHP:[center]{ if(x==0)return; else { cout<<x<<endl; rec(num-1); }[/center]
لو عطيناه مثلاً 5 ,,
بيجي, يجيك, x==0 ؟؟
طبعاً لا,
بيروح للـ else
بيسوي cout
و بيسوي call حق الفنكشن بقيمة 4
و بعدين 3
و 2
لين يوصل 0
.. إنته شخص مهم في المحاضرة .. غيابك يأثر على كثيرين منّا >> إهني السلام عليكم
شخباركم
حدي اسايمنت مو عارفه احله كامل ياليت احد بس يشرح لي الفكرة خصوصا مال bool operater?
لان باجر التسليم
Consider the class myClass given below
class myClass
{
friend void display(const myClass c);
private:
int x,y;
public:
myClass();
~myClass();
void set(int a,int b);
int getX();
bool operator < (const myClass z);
int operator + (const myClass z);
};
1. Rewrite the above class as template so that it will becomes a class of any type (not just integers).
2. Implement/Code the functions given in the above class.
3. In the main program:
a. Declare two objects C1 and C2 of type myClass.
b. Set object C1 to 3 and 4 respectively.
c. Set object C2 to 4 and 5 respectively.
d. Use operator < to compare between class C1 and C2 and print an appropriate message (comparing x’s only).
e. Use operator + to add classes C1 and C2 and print the result (adding y’s only).
f. Call the friend function display (C1) to Print the data of class C1.

السلام عليكم
شخباركم
شوفوا ليي ذي الاسايمنت اش طول ياريت تساعدوني
لاني مو فاهم شي
Question1: Function: output_list
You need to create a recursive function called output_list that will create a list of integers based on the 3 parameters: start, end and interval. The function should generate a list of numbers starting with the number start, each successive number should be closer to the number end and the numbers should all be interval apart.
Example2: Example1:
Start=1, end=650, interval=100
The output: 1 101 201 301 401 501 601 Start=3, end=11, interval=2
The output: 3 5 7 9 11
Question2: Function: sum_list
You need to create a recursive function called sum_list that will return the sum of a list of integers based on the 3 parameters: start, end and interval.
Example2: Example1:
Start=1, end=650, interval=100
Result: 1+101+ 201+ 301+401+ 501+ 601
Output: 2107 Start=3, end=11, interval=2
Resul= 3+ 5 + 7+ 9+ 11
Output=The final resul is 35
Question3:
Function: curveup_list
You need to create a recursive function called curveup_list that will receive a list of integers, a length and integer interval. The function should increase each element of the array list by interval.
Example2: Example1:
List[ ] = 15, 24, 1, 6, 9, 7, 11, 1, 0, 5
Length=10, interval=1
Resul:
List[] =16, 25, 2, 7, 10, 8, 12, 2, 1, 6 List[ ] = 3, 7, 11, 1, 0
Length=5, interval=3
Resul:
List[] =6, 10, 14, 4, 3
Question4:
Write a program (main function) to test the three functions.
هذا السؤال تبع سكشنا للدكتور الجميل يوسف الجزيري مو !!!! 
فكر فيه و جوف
اني لحد الحين صايدني خلل فيها ,,, بس ان شاء الله بينحل اذا تبطل مخي 

