عرض مشاركة واحدة
منتديات طلاب وطالبات جامعة الملك عبد العزيز منتديات طلاب وطالبات جامعة الملك عبد العزيز
  #1  
قديم 05-11-2010, 12:57 AM

Maro-_-RooRo Maro-_-RooRo غير متواجد حالياً

جامعي

 
تاريخ التسجيل: Nov 2010
نوع الدراسة: إنتظام
المستوى: الثالث
الجنس: أنثى
المشاركات: 1
Skaau.com (10) سوال في برمجه c++


السلام عليكم


كيفكم؟؟


عندي واجب في برمجه c++وتسليمو السبت منى عارفه احلو


السوال :


Write a program that output 2 choices:
*Press 1 to shift right
*Press 2 to shift left
If the user presses 1, then the program will shift each element in the array to its the next right position.
When the program reach to the value of the last position, then the program will shift it to the first position.
If the user presses 2, then the program will shift each element in the array to its previous left position.
When the program reach to the value of the first position,then the program will shift it to the last position.
Hints:The user enters array elements
The Size of the array is 20


وشكرا^^
رد مع اقتباس