العربية  

books achieving the subtraction process

If you do not find what you're looking for, you can use more accurate words.

View more

تحقيق عملية الطرح (Info)


ينفذ التابع (Pop(s الذي يأخذ بعين الاعتبار حالة كون المكدس فارغ كما يلي:

  • إذا كان المكدس فارغاً فإنه يطبع رسالة تدل على الخطأ.
  • وإلا يتم سحب عنصر القمة من المكدس وإعطاء هذا العنصر إلى البرنامج المستدعي.

ويكتب هذا التابع بلغة الباسكال كما يلي :

Function Pop (var s:stack) : integer Begin If empty(s) Then error('stack underflow'); Else Begin Pop =s.item[s.top]; s.top =s.top - 1; End; End;

Source: wikipedia.org
 
(1)
Guiding Process

Guiding Process