tag:blogger.com,1999:blog-33201909626458607832024-02-08T08:24:00.534-08:00center Alaa.netAnonymoushttp://www.blogger.com/profile/08900978179572895284noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-3320190962645860783.post-45464751545188501142016-07-08T05:45:00.003-07:002016-07-08T05:45:36.895-07:00<div dir="rtl" style="text-align: right;" trbidi="on">
<br />
<br />
هذه الدروس للشرح لكي نفهم ما نقرائه من الكتب منقول للمنفعة العامة <br />
<br />
<br />
و هده الدرس الاول و الثاني <br />
<br />
<br />
<br />
<br />
<br />
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/Q3wYGZosoPI/0.jpg" src="https://www.youtube.com/embed/Q3wYGZosoPI?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
<div class="separator" style="clear: both; text-align: center;">
<iframe width="320" height="266" class="YOUTUBE-iframe-video" data-thumbnail-src="https://i.ytimg.com/vi/OPsJloYjA4c/0.jpg" src="https://www.youtube.com/embed/OPsJloYjA4c?feature=player_embedded" frameborder="0" allowfullscreen></iframe></div>
الردوس الاولى الجزئين الاول والثاني </div>
Anonymoushttp://www.blogger.com/profile/08900978179572895284noreply@blogger.com0tag:blogger.com,1999:blog-3320190962645860783.post-79209919144285662912016-07-08T05:33:00.002-07:002016-07-08T05:33:24.620-07:00<div dir="rtl" style="text-align: right;" trbidi="on">
<div style="text-align: center;">
السلام عليكم </div>
<div style="text-align: center;">
كل عام وانتم بالف خير </div>
<div style="text-align: right;">
اخوتي الاعزاء اقدم لكم متابعة الدروس اللغة البرمجية c pp مع الضروف الصعبة التي يمر بها البلد من تفجيرات وانتهاكات حقوق الانسان و عدم تواجد السلطة بعد تفجير الكرادة وتفجير كل مكان حدث فيه في بغداد والعراق عموما لكن يجب ان نكمل دراساتنا لكي يتثقف الجيل الجديد و نعرف مستقبل اولادنا لنبدأ بدروس الجديدة </div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<span style="font-family: Arial;"></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><b><span style="color: blue; font-family: Arial; font-size: large;"><span lang="AR-SA">تعلم سي بلس بلس</span></span></b></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="color: red; font-family: Tahoma;"><span style="text-decoration: underline;">الدرس السادس </span></span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><u><span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;">هياكل البيانات </span></span></u></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">مساء الخير </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;">نتناول اليوم موضوع رائع وقوي جدا من الناحية البرمجية- لقد تعلمت فيما سبق كيف تعلن عن بيانات حسب نوعها وقد كنت تعلن عنها بصورة منفصلة الآن وبنفس الطريقه سوف نعلن عنها ولكن في صورة مجمعة لتكون هيكل للبيانات وهذا الموضوع مفيد جدا في برمجه قواعد البيانات وسترى فوائد ذلك ولو اننا لم ندرس تخزين البيانات في ملفات على الاقراص حيث سنتناول ذلك في درس قادم ولكن عند تجميع البيانات في هياكل اذا قمت بتخزين الهيكل نفسه سيتم تخزين جميع عناصره دفعة واحدة دون ان تنسى اي عنصر وبالتالي يعطيك ميزة اضافيه عما لو كنت تعلن عن البيانات في صورة منفصلة كما سترى </span></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">ومثالنا اليوم عن قاعدة البيانات الافتراضية التالية سوف ندرسها بالطريقه العاديه وبطريقة هياكل البيانات لتعرف الفرق وتفهم الموضوع وفي نفس الوقت تدرك ميزات وفوائد هياكل البيانات </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;">لنفرض ان هناك مصنع يعمل على فترتين ولكل عامل فيه سجل بيانات بالطبع لعامل الفترة الاولى والآخر لعامل الفترة الثانية ونفترض للتبسيط ان بيانات كل عامل تحتوي على اسمه ورقمه الوظيفي وراتبه اليومي حتى انه لوتغيب احدى الفترات وضع راتب يومه بالقيمة صفر حتى يتم حساب راتبه الشهري بصورة صحيحة وسيكون الاعلان عن البيانات بالصورة التاليه لنتفق عليها وفيها فائدة تكرار اشياء سبق الاشارة اليها في دروس سابقه </span></span></span></span></div>
<br />
<div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; width: 336px;"> <tbody>
<tr><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 100px;" width="104"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الصيغة</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 236px;"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">المتغير او وعاء البيانات</span></span></div>
</span></td></tr>
<tr><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 100px;" width="104"><span style="font-family: Arial;"> <div dir="ltr">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red;">char [30] </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 236px;"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red;">اسم الموظف افترضنا انه متغير حرفي سعته 30 حرف</span></span></div>
</span></td></tr>
<tr><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 100px;" width="104"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;">int</span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 236px;"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الرقم الوظيفي للموظف وهو عدد صحيح</span></span></div>
</span></td></tr>
<tr><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 100px;" width="104"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue;">float </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 236px;"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue;">الراتب اليومي للموظف وهو عدد عشري لان الراتب من المؤكد انه سيحتوي على كسور</span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black;"><span style="font-family: Tahoma;"><span lang="AR-SA"><span style="font-size: x-small;"> </span></span></span><span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;">دعنا الآن نعلن عن هذه البيانات بالصورة العادية لنعرف الفرق </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">بيانات موظف الفترة الاولى</span></span></div>
<div dir="ltr" style="direction: rtl; text-align: left; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span dir="ltr"><span lang="AR-SA"> </span>char [30] Name1</span>;</span></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">int Code1;</span></div>
<div align="left">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;">float Wage1; </span></span></div>
<div align="left" dir="rtl" style="direction: rtl; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">بيانات موظف الفترة الثانية</span></span></div>
<div align="left" dir="rtl" style="direction: rtl; unicode-bidi: embed;">
<br /></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">char [30] Name2;</span></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">int Code2;</span></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">float Wage2;</span></div>
<div align="justify">
<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: yellow; font-family: Tahoma; font-size: x-small;"> </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">ال</span></span><span lang="AR-SA"><span style="color: blue; font-family: Tahoma; font-size: x-small;">صورة السابقه لتمثيل بيانات البرنامج مع اثنين من الموظفين يعملون لفترتين وكلما ادخلت بيانات اسم موظف الفترة الاولى سوف تستخدم المتغير Name1 وللفترة الثانية ستستخدم المتغير Name2 فماذا لو بدلت المتغيرين بالخطأ بالطبع سيحدث خلل كبير بالبرنامج دعنا نمثل ماسبق تماما بالطريقة الجديده عن طريق استخدام هياكل البيانات </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">استخدام هياكل البيانات</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
<div align="left">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: green;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">struct</span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red;"><span lang="en-us"> </span>OurDataBase</span></span></span></div>
<div align="left">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue;">{</span></span></div>
<div align="left">
<span style="color: green; font-family: Tahoma; font-size: x-small;">char [30] Name;</span></div>
<div align="left">
<span style="color: green; font-family: Tahoma; font-size: x-small;">int Code;</span></div>
<div align="left">
<span style="color: green; font-family: Tahoma; font-size: x-small;">float Wage; </span></div>
<div align="left" dir="rtl" style="direction: rtl; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue;">}L1,L2;</span></span></div>
<div align="right" dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> <span lang="AR-SA">انظر الى الصورة السابقه كم هي مختصرة انها رائعة وانا ارى فيها اختصار مفيد ودعنا نرى كيف نصيغ ذلك بالجدول الذي تعودنا عليه للتوضيح </span></span></div>
</span><div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الصيغة</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">التفسير</span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red;">struct </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red;">هو الامر الذي ندرسه الان ومعناه الاعلان عن هيكل بيانات </span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: red; background-position: 0% 50%; background-repeat: repeat; color: white;">OurDataBase</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اسم الهيكل سميه كما شئت</span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue;">{ </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue;">قوس بداية البلوك</span></span></div>
</span></td></tr>
<tr><td colspan="2" style="background: yellow; border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 452.45pt;" width="603"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue;">ضع ما يحلو لك من انواع بيانات داخل البلوك </span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue;">} </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue;">قوس نهاية البلوك – لاتنساه من فضلك</span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue;">L1,L2; </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue;">متغيرات اختياريه ترمز لمن سيشارك في استخدام البيانات المعلنه للهيكل </span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> كما رأيت بالمثال لم نستخدم متغير اسم للموظف الاول وآخر للموظف الثاني بل استخدمنا متغير واحد وسوف يتشارك اي عدد حسب تصميم الهيكل في استخدام بيانات الهيكل ولنوضح ذلك </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">للتعبير عن اسم الموظف الاول او موظف الفترة الاولى </span></span></div>
<div align="center" style="text-align: center;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">L1.Name</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">للتعبير عن اسم الموظف الثاني او موظف الفترة الثانية </span></span></div>
<div align="center" style="text-align: center;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">L2.Name</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: green; font-family: Tahoma; font-size: x-small;"> </span></span><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">للتعبير عن رقم الموظف الاول او موظف الفترة الاولى </span></span></div>
<div align="center" style="text-align: center;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">L1.Code</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"> </span><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">للتعبير عن رقم الموظف الثاني او موظف الفترة الثانية </span></span></div>
<div align="center" style="text-align: center;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">L2.Code</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"> </span><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">للتعبير عن الراتب اليومي للموظف الاول او موظف الفترة الاولى </span></span></div>
<div align="center" style="text-align: center;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">L1.Wage</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"> </span><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">للتعبير عن الراتب اليومي للموظف الثاني او موظف الفترة الثانية </span></span></div>
<div align="center" style="text-align: center;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">L2.Wage</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">هل رأيت كم هي بسيطة ربما احتوى هيكل البيانات على مائة متغير مثلا سوف تخزنهم وتسترجعهم بمنتهى السرعة كما سترى فيما بعد ويمكن ايصبح تدوال البيانات السابقة داخل البرنامج سواء بالادخال من مستخدم البرنامج او بالتخصيص كما يلي </span></span></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">L1.Name = “Mohamad Hasan”;</span></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">L1.Code = 120;</span></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">L1.Wage = 13.50;</span></div>
<div align="left">
<br /></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">L2.Name = “Ahamd Ali”;</span></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">L2.Code = 270;</span></div>
<div align="left">
<span style="color: black; font-family: Tahoma; font-size: x-small;">L2.Wage = 0;</span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">بالطبع هذه فكرة برنامج ويمكن اضافة المزيد من التحسينات من خلال تحليل البيانات فمثلا جمع المتغير </span><span dir="ltr">L1.Wage</span><span lang="AR-SA"> لمدة شهر سوف يعطيك راتبه الشهر وجمع القيم التي تساوي صفر للمتغير </span><span dir="ltr">L1.Wage</span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> <span style="color: black;">لمدة شهر سوف يعطيك عدد ايام غيابه خلال الشهر وهذا يبقى دور تحليل البيانات لاستخلاص نتائج ومخرجات – المثال السابق كان لتوضيح الفكرة فقط. </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;"><br /></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;"><br /></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;"><br /></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;"><br /></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;"><br /></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;"><br /></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;"><br /></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;"><br /></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<br /></div>
</span><div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<u><span lang="AR-SA"><span style="color: red; font-family: Tahoma;">الدرس السابع </span></span></u></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: lime; font-family: Tahoma; font-size: x-small;"> </span></span><u><span lang="AR-SA"><span style="color: red; font-family: Tahoma; font-size: x-small;">المصفوفات </span></span></u></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">مساء الخير </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">المصفوفات من الادوات الهامة في لغات البرمجة لتخزين قيم عددية او حرفية تحت نفس الاسم بمعنى آخر دعنا نرى المثال التالي لتخزين عدد </span></span></div>
<span style="color: black; font-family: Tahoma; font-size: x-small;">int A; </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> A=5; </span><br />
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">في هذا المثال لم نستطع ان نخزن في المتغير المعلن عنه وهو عدد صحيح سوى قيمة واحدة فقط ولو حاولت (بالطبع تتفق معي في هذا ) تخزين قيمة اخرى فسوف تلغي القيمة الاولى لتحل محلها القيمة الجديده تقوم المصفوفات بعلاج هذه المشكلة مثال لذلك. </span></span></div>
<span style="color: black; font-family: Tahoma; font-size: x-small;">int A[50]; </span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">اعلن عن مصفوفة اعداد صحيحة تستطيع تخزين خمسون عدد صحيح كما يلي </span></span></div>
<span style="color: black; font-family: Tahoma; font-size: x-small;"> A[0] = 5; </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">A[1] = 10; </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">. </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">A[49] = 300; </span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">مع ملاحظة ان التعبير التالي سوف يعتبر خطأ جسيم مع لغة سي++</span></span></div>
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">A[50] = 200;</span></span><br />
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">رغم ان المصفوفة تتسع ل 50 رقم الا ان المصفوفة تبدء من العنصر A[0] وتنتهي بالعنصر A[49] وبذلك يكون مجموع العناصر 50 كما طلبت شاملا الرقم صفر وفي لغة سي++ دائما نبدء العد من صفر وليس من 1</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">ويمكن ان تكون المصفوفة ذات اتجاهين مثل </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;">15 65 33</span> <span style="color: yellow;"><span style="background: red;">44</span> </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">1 0 11 22 </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">33 52 11 17 </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-color: lime; background-position: 0% 50%; background-repeat: repeat;">18</span><span lang="AR-SA"> <span style="color: black;">25 14 41 </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">لتمثل بلغة سي ++ كما يلي </span></span></div>
<span style="font-family: Tahoma; font-size: x-small;"> <span style="color: black;">int A[4][4]; </span></span><br />
<div align="center">
<span style="font-family: Tahoma; font-size: x-small;"> </span><span lang="AR-SA" style="background-attachment: scroll; background-color: red; background-position: 0% 50%; background-repeat: repeat;"><span style="color: yellow; font-family: Tahoma; font-size: x-small;">حيث يكون العدد 44 المظلل بالاحمر هو </span></span></div>
<div align="center">
<span style="color: yellow; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: red; background-position: 0% 50%; background-repeat: repeat;">A[0][0] = 44;</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA" style="background-attachment: scroll; background-color: lime; background-position: 0% 50%; background-repeat: repeat;"><span style="font-family: Tahoma; font-size: x-small;">ويكون العدد 18 المظلل بالاخضر هو </span></span></div>
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: lime; background-position: 0% 50%; background-repeat: repeat;">A[3][3] = 18;</span></span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> <span lang="AR-SA">وافضل طريقة لتعبئة وتخصيص قيم لمصفوفة وللتعامل مع المصفوفات بصفة عامة هي عمل </span><span dir="ltr">looping </span><span lang="AR-SA"> باستخدام </span><span dir="ltr">for </span><span lang="AR-SA"> او غيرها كما سبق ووضحنا ذلك وكمثال لملئ المصفوفة التالية بالقيمة صفر </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<br /></div>
<span style="color: black; font-family: Tahoma; font-size: x-small;">int A[100]; </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">int I; </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">for (I = 0 ; I < 100 ; I++) </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">{ </span><br />
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">A[I] = 0;</span></span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">} </span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: lime; font-family: Tahoma; font-size: x-small;">ب</span><span style="color: green; font-family: Tahoma; font-size: x-small;">الطبع الدوران السابق يغير قيمة العداد من صفر الى 99 ووضعنا داخل البلوك تخصيص لعناصر المصفوفة وبدلا من وضع قيمة عددية لتشير لعنصر بالمصفوفة وضعنا رمز العداد حيث انه سوف يتغير مع الدوران الذي يحدث وبالتالي تتخصص القيم حسب الترتيب</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">ولتخصيص القيم صفر مثلا لمصفوفه ذات اتجاهين </span></span></div>
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;">int A</span><span style="color: green;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">[10]</span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red;">[10]</span></span> <span style="color: black;">,</span><span style="color: green;"> </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green;">I</span></span> <span style="color: black;">,</span> <span style="color: red;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">J</span></span><span style="color: black;">;</span> </span><br />
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green;">for (I = 0 ; I < 10 ; I++) </span></span></span><br />
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">{</span></span><br />
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">for (J = 0 ; J < 10 ; J++)</span></span><br />
<span style="color: green; font-family: Tahoma; font-size: x-small;">{ </span><br />
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;">A</span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green;">[I]</span></span><span style="color: red;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">[J]</span> </span><span style="color: black;">= 0;</span> </span><br />
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">}</span></span><br />
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">}</span></span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">بوضع دورتين واحدة تدور على الصفوف حتى تنهيها وتعود لتغير الصف وهكذا كما سبق وتعلمت </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<br /></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<br /></div>
<div dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-color: navy; background-position: 0% 50%; background-repeat: repeat; color: yellow;">ولنا في المصفوفات مآرب أخرى</span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span lang="AR-SA" style="color: yellow;"><span style="font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">لاتحتوي لغة سي ++ على تعريف ثابت وداخلي للمتغيرات الحرفية ولذلك يتم تلافي ذلك باستخدام المصفوفات ربما يعترض واحد من المتابعين لهذه الدروس بأن الامر </span>char<span lang="AR-SA"> يقوم بذلك نعم هو كذلك ولكنه يعرف المتغير على انه حرف واحد فقط ونحن سنتحايل عليه بالمصفوفات كما يلي </span></span></div>
<span style="color: black; font-family: Tahoma; font-size: x-small;">char Q; </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">Q = ‘A’; </span><br />
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">عرفنا المتغير </span><span dir="ltr">Q</span><span lang="AR-SA"> على انه حرف وبالتالي لانستطيع تخزين فيه سوى القيمة </span><span dir="ltr">A </span><span lang="AR-SA"> فاءذا طلبت طباعة قيمة المتغير </span><span dir="ltr">Q</span><span lang="AR-SA"> سيقوم البرنامج بطبع الحرف </span><span dir="ltr">A </span><span lang="AR-SA"> فماذا لو اننا نريد تخزين عدة حروف تمثل اسم شخص اذا علينا بمصفوفة حروف كما يلي </span></span></div>
<span style="color: black; font-family: Tahoma; font-size: x-small;">char Q[40]; </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">Q = “Mohamad Hasan”; </span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">هل رأيت كيف تغلبنا على ذلك اعتمد الصيغة السابقة مؤقتا حتى الوصول لدرس يعطيك مزايا اكثر وشرح اوضح للمتغيرات الحرفية اننا لن نتأخر كثيرا عليك فهو الدرس القادم </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<br /><span style="font-family: Arial;"></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><u><b><span style="color: blue; font-family: Arial; font-size: large;"><span lang="AR-SA">تعلم سي بلس بلس</span></span></b></u></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الدرس الثامن </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: lime;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span><u><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red;">المتغيرات الحرفية </span></span></u></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">مساء الخير </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;"> لقد تحدثنا في الدرس السابق عن تخزين الحروف في مصفوفات وألان سوف نعيد ما قلناه بشئ من التفصيل لنأخذ مثال مشابه لما سبق تماما</span> </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">char A[50];</span></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">سوف تتذكر الآن ماقلناه بأن المصفوفة السابقة تقوم بتخزين اسم او مجموعة حروف عددها 50 حرف شاملا المسافات التي بين الاسماء فعند ضغطك على قضيب المسافات يعتبر حرف ولكنه ليس له شكل لينتج المسافة بين الكلمات المهم ان المجموع 50 حرف تبدء المصفوفة من صفر الى 49 كما قلنا سابقا ان مصفوفات سي++ تبدء من صفر وليس من واحدد ولذلك الاعداد من صفر الى 49 هي 50 عدد وبالتالي عدد الحرف المخزنة هي 50 حرف كما سبق وطلبت وتم تلبية طلبك كل ذلك قلناه سابقا ولكن دعني اضيف بأن عدد الحروف التي سوف تدخلها سوف تكون 49 فقط وليس 50 لان سي++ تضيف في نهاية المتغير الحرف رقم 50 من عندها وهو الحرف </span>\0<span lang="AR-SA"> وهو يعني نهاية المتغير الحرفي ليعرف نظام التشغيل بأن هذه هي نهاية المتغير ولا يوجد شئ بعدها والرمز السابق يطلق عليه </span>NULL character</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="color: green; font-family: Tahoma; font-size: x-small;">وخلاصة القول ان تعلن عن المصفوفة بعدد يزيد بواحد عن سعتها المدخلة </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">لا تتضايق مما تفعلة سي++ من اضافة رمز على حسابك الخاص في نهاية المتغير انك تفعل ذلك وانا ايضا افعل ذلك فعند كتابة فقرة مكونة من حروف نضع نقطة في نهاية الكلام لنفيد القارئ بأن الكلام انتهى – أليس كذلك</span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">استخدام المؤشرات للاعلان عن متغيرات الحروف</span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;"> يمكنك ايضا ان تعلن عن المتغير الحرفي باستخدام المؤشرات وهو درس كان يجب ان اشرحة ضمن الدروس السابقة ولكني رأيت ان اتركه للنهاية مع انه من المفترض ان يكون في البداية ولكن لصعوبته قليلا تلافيت وضع امثلة تحتوى مؤاشرات ما أمكن في البداية انتظارا لشرحة – يمكنك ان تعلن عن متغير حرفي بهذه الطريقة</span> </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">char *A;</span></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">وهذه طريقة اخرى للاعلان عن متغيرات حرفية تحتوي مميزات اكبر</span></span></span></div>
<div align="center" dir="ltr" style="direction: rtl; text-align: left; unicode-bidi: embed;">
<span style="font-family: Arial;"><span dir="ltr"><span lang="AR-SA"><span style="color: blue; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">A = new char [50];</span></span></span></span></div>
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">ولنأخذ طريقة صياغة الامر السابق بجدولنا المعتاد</span></span></span><br />
<br />
<div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none;"> <tbody>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 81.15pt;" width="108"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: blue; font-family: Tahoma; font-size: x-small;">الصيغة</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: blue; font-family: Tahoma; font-size: x-small;">الشرح</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 81.15pt;" width="108"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">A </span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اسم المصفوفة المفترض</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 81.15pt;" width="108"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">= </span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">لابد ان توضع لتون الصيغة صحيحة</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 81.15pt;" width="108"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">New </span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">من اوامر اللغة للاعلان عن متغير جديد</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 81.15pt;" width="108"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">char </span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">نوع المصفوفة (حروف) </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 81.15pt;" width="108"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">[50]; </span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">قوسين بينهم سعة المصفوفة</span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">والجديد في الصيغة السابقة هو انك بعد ان تنتهي من جميع العمليات الخاصة بالمصفوفة السابقة يمكن ان تلغيها ولذلك لتفريغ المساحة الخاصة بها من الذاكرة وهذه هي سي++ القوية جدا وذلك بالصيغة التالية </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div align="left" dir="ltr">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;">delete [A] ;</span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">ادخال المتغيرات الحرفية</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">بالطبع ليس عندك مشكلة الآن في ادخال المتغيرات الحرفية باستخدام </span>cin <span lang="AR-SA"> ولكن لزم هنا التنويه بأن هذا الامر بالفعل سوف يدخل الحروف ولكنه سوف يتوقف عن الادخال عند الضغط على قضيب المسافة فلو انك تريد ادخال الاسم </span>Mohamad Hasan<span lang="AR-SA"> الى متغير حرفي سوف يستقبل الاسم </span>Mohamad <span lang="AR-SA"> وعند ضغطك على قضيب المسافة لادخال بقية الاسم </span>Hasan</span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">حينها سوف يتوقف ولا يقبل الا الجزء الاول من الاسم وعليه استخدام احد عناصر فئة </span>cin <span lang="AR-SA">والفئات سوف نشرحها في درس قادم وهو </span></span></div>
<div dir="ltr">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;">cin.getline (A,50,’\n’);</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">وصيغتة كما يلي</span></span></div>
</span><div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: blue; font-family: Tahoma; font-size: x-small;">الصيغة</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: blue; font-family: Tahoma; font-size: x-small;">الشرح</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">cin.getline </span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الامر المشتق من </span>cin</span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;">( </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">قوس احتواء البارامترات</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;">A </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اسم المصفوفة السابق الاعلان عنها</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;">, </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">فاصلة بين بارامترين</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;">50 </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">طول او عدد الحروف المتوقع ادخالها</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">, </span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">فاصلة بين بارامترين</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="text-align: center;">
<span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;">‘\n’ </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">معناه سطر جديد بعد المتغير ويمكنك اهمال هذا البارامتر</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;">); </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">قوس نهاية احتواء البارامترات والفاصلة المنقوطة لانها ادخال الصيغة كلها</span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">مزيدا من الدوال التي تتعامل مع المتغيرات الحرفية</span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"> انها عدد من الدوال للمقارنة بين الحروف والتعامل معها كما سيلي شرحه </span></span></div>
<div dir="ltr">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span dir="ltr">char Name1 [30] = “MOHAMAD HASAN”;</span></span></div>
<div dir="ltr">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> <span dir="ltr">char Name2 [30] = “mohamad hasan”; </span></span></div>
<div dir="ltr">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> <span dir="ltr">int L; </span></span></div>
<div dir="ltr">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;"> L =</span> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue;">strcmp</span></span> <span style="color: black;">(Name1 , Name2); </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الدالة </span>strcmp <span lang="AR-SA"> تقارن بين متغيرين حرفيين مع الاخذ في الاعتبار حالة الحروف الصغيرة والكبيرة فالحرف </span>A <span lang="AR-SA">بالنسبة لها غير الحرف </span>a <span lang="AR-SA"> وتعيد قيمة عدد صحيح يخزن في المتغير الصحيح </span>L <span lang="AR-SA"> كما يلي </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
</span><div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">القيمة المعادة</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الشرح</span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اصغر من الصفر</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">عندما يكون الاسم الاول اصغر من الثاني</span></span></div>
</span></td></tr>
<tr><td style="background: yellow; border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue;"><span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;">تساوي صفر</span></span></span></div>
</span></td><td style="background: yellow; border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue;"><span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;">عندما يتساوى الاسمان</span></span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 93.3pt;" width="124"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اكبر من الصفر</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">عندما يكون الاسم الاول اكبر من الثاني</span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div align="justify">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> <span lang="AR-SA">ربما يسأل احدكم سؤال ما معنى ان يكون اسم اكبر من اسم حيث ان اسم يساوي اسم هو شئ مفهوم اي تطبق الحروف فما معنى ان يكون اكبر او اصغر </span>–<span lang="AR-SA"> نعم ربما يهمك فقط عملية التساوى كأن تدخل كلمة سر يتم مقارنتها مع كلمة اخرى مخزنة داخل الحاسب للتعرف على الشخص اما حالة ان يكون الاسم اكبر او اصغر فهي نادرة الاستخدام وتستخدم فقط في ترتيب الاسماء ابجديا ومعنى اكبر ان يكون ترتيب الحروف في جدول اسكي للاسم الاكبر يلي ترتب الحروف للمتغير الاصغر . </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">في المثال السابق لن تكون قيمة </span>L <span lang="AR-SA"> تساوي صفر رغم ان الحروف واحدة للاسمين ولكن مرة حروف صغيرة ومرة حروف كبيرة ولكن هناك الدالة التالية التي لاتهتم بحالة الحروف </span></span></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;">char Name1 [30] = “MOHAMAD HASAN”; </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> <span dir="ltr">char Name2 [30] = “mohamad hasan”; </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> <span dir="ltr">int L; </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;"> L = </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">strcmpi</span></span><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">(Name1 , Name2); </span></span></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;"><span lang="AR-SA">هذه الدالة </span>strcmpi </span><span lang="AR-SA"><span style="color: black;"> سوف تعطي قيمة = صفر لان الاسمين متساويين وهي لاتهتم بحالة الحروف</span> </span></span></div>
<div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">الحاق متغير حرفي بآخر </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">strcat</span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"> </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;">char Name1 [30] = “Mohamad”; </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;"> char Name2 [30] = “Hasan”; </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;"> int L; </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">strcat</span></span> <span style="color: black;">(Name1 , Name2);</span> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">تقوم الدالة بالحاق الاسم الثاني بالاول ليصبح الاسم الثاني عبارة عن الاسمين مدموجين وتكون النتيجة ان المتغير الثاني </span>Name2 <span lang="AR-SA">بعد العملية السابقة يصبح حاملا القيمة </span></span></div>
<div align="justify" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Mohamad Hasan </span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">تحويل الحروف الصغيرة الى كبيرة </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">strupr</span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">char Name [30] = “mohamad hasan”; </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">strupr</span></span><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">(Name); </span></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">بعد العملية السابقة يتحول المتغير </span></span><span style="color: black; font-family: Tahoma; font-size: x-small;">Name <span lang="AR-SA"> الى </span>MOHAMAD HASAN</span></div>
<div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">تحويل الحروف الكبيرة الى صغيرة </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">strlwr</span></span></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">char Name [30] = “MOHAMAD HASAN”; </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">strlwr</span></span><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">(Name); </span></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> <span lang="AR-SA">بعد العملية السابقة يتحول المتغير </span>Name <span lang="AR-SA"> الى </span>mohamad hasan</span></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">قياس طول متغير حرفي </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">strlen</span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">char Name [30] = “MOHAMAD HASAN”; </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">int L; </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">L = </span></span><span style="color: black; font-family: Tahoma; font-size: x-small;">strlen (Name);</span></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">بعد العملية السابقة سيتم قياس طول المتغير الحرفي او عدد حروفه ويوضع كعدد بالمتغير </span></span><span style="color: black; font-family: Tahoma; font-size: x-small;">L <span lang="AR-SA"> حيث سبق الاعلان عنه كعدد صحيح </span></span></div>
<div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">واليك مثال يشمل كل ما سبق شرحه</span></span></div>
</span><div style="text-align: left;">
<span style="font-family: Arial;"><div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">#include <iostream .h=""> </iostream></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">//For cout</span></span></div>
</span></div>
<div style="text-align: left;">
<span style="font-family: Arial;"><div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">#include <string .h=""> </string></span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //For many of the string functions </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">int main() </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">{ </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> char name[50]; </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //Declare variables </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> char lastname[50]; </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //This could have been </span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">declared on the last line</span></span><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"> </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">cout<<"Please enter your name: "; </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //Tell the user what to do </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cin.getline(name, 50, '\n'); </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//Use gets to input</span> </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">strings with spaces</span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">// or just to get strings after the user presses enter</span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> if(!strcmpi("Mohamad", name)) </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//The ! means not,</span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">strcmpi returns 0 for</span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> { </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//equal strings</span> </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<"That's my name too."<<endl font=""><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//Tell the user</span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">if its my name</span></span></endl></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> } </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> else </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//else is used to keep it from</span> </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">always</span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> { </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//outputting this line</span> </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<"That's not my name." </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"> <span style="color: blue;">}</span> </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<br /></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<"What is your name in uppercase..."<<endl font=""></endl></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> strupr(name); </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //strupr converts the string to uppercase </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<name endl="" font="" nbsp=""></name></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<"And, your name in lowercase..."<<endl font=""></endl></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> strlwr(name); </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//strlwr converts the string to lowercase </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<name endl="" font=""></name></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<"Your name is "<<strlen endl="" font="" letters="" long="" name="" nbsp="" returns="" strlen=""></strlen></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 36pt; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">//the length of the string</span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<"Enter your last name:"; </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> gets(lastname); </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//lastname is also a string</span> </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> strcat(name, " "); </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//We want to space the two names apart </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;"> strcat(name, lastname); </span><span style="color: blue;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //Now we put them together, we a space in </span></span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 36pt; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//the middle</span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;"> cout<<"Your full name is "<<name font=""><span style="color: blue;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">//Outputting it all...</span></span> </name></span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> return 0; </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<br /></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">} </span></div>
</span></div>
<span style="font-family: Arial;"><div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<br /><span style="font-family: Arial;"></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 200%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: red; font-family: Arial; font-size: medium;"><span lang="AR-SA">الدرس التاسع </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 200%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><u><span style="color: red; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الملفات </span></span></u></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">مساء الخير </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">في هذا الدرس سوف نتعرض لتخزين البيانات واسترجاعها من الملفات بالطبع مافائدة ادخال كم كبير من البيانات اذا لم نستطع تخزينها واسترجاعها ان اوامر الحفظ بالبرامج التي تستخدمها من اهم الاوامر التي تستخدمها وان امر فتح ملف ماهي الا عملية استرجاع لبيانات سبق حفظها بملف وهذا هو موضوعنا اليوم. </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">عندنا اليوم فئتين هامتين للعمليتين السابق ذكرهما ألا وهما الحفظ والاسترجاع وبالاضافة الى الفئتين سيكون بصحبتنا الملف </span><span dir="ltr">fstream.h</span><span lang="AR-SA"> كرأس ملف للتعريفات الخاصة بالفئتين </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">الفئة الاولى </span></span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">ifstream</span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">ستتولى هذه الفئة القراءة من الملفات اي عملية استرجاع البيانات او فتح الملفات</span></span></span></div>
<div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">الفئة الثانية </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">ofstream</span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">ستتولى هذه الفئة الكتابة في الملفات اي عملية حفظ البيانات</span></span></span></div>
<div align="center" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">ولنأخذ مثال للتوضيح</span></span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Arial;"><span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;">ifstream MyFile (“mydata.txt”);</span></span></span></div>
<div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<br /></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">ولنرى طريقة صياغة الامر بالجدول المعتاد</span></span></span></div>
</span><div align="center">
<span style="font-family: Arial;"> </span><table border="2" cellspacing="1" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; width: 450px;"> <tbody>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 155.3pt;" width="207"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الصيغة</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 335.6pt;" width="447"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الشرح</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 155.3pt;" width="207"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">ifstream</span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 335.6pt;" width="447"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اسم الفئة الخاصة بفتح الملفات</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 155.3pt;" width="207"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">MyFile</span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 335.6pt;" width="447"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">بارامتر اختياري تختاره لاستدعاء دوال الفئة</span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 155.3pt;" width="207"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span dir="ltr">(</span><span dir="ltr" lang="AR-SA">“</span><span dir="ltr">mydata.txt”);</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 335.6pt;" width="447"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">بين قوسين وعلامتي اقتباس تضح اسم الملف المراد فتحه ولايغيب عنك انه يجب ان يكون ملف موجود على القرص</span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">يستخدم البارامتر الاختياري لاستدعاء دوال الفئة سواء لفتح او اغلاق الملف وكل ملف يفتح سواء للكتابة او القراءة لابد ان يغلق بعد تمام العملية واذا نسيت ذلك فتأكد من ضياع بياناتك وهذا يحدث كثيرا عند اغلاق الكومبيوتر بغير الطريقه الصحيحة حينها تكون البرامج قد قامت بفتح ملفات ولم تغلقها لانك اغلقت الجهاز حينها تحدث اخطاء ويقوم نظام تشغيل الوندوز باستدعاء </span><span dir="ltr">scandisk</span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> <span style="color: black;">للتصحيح هذه المشكلة</span> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
<div align="center" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">MyFile.close();</span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">البارامتر السابق تعريفه للفئة يقوم باستدعاء احد الدوال الهامه وهي دالة اغلاق الملف كما ذكرنا لك سابقا واليك مثال كامل لعمليات الحفظ والاسترجاع لتتضح الصورة امامك كاملة. </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">#include <fstream .h=""></fstream></span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">#include <iostream .h=""></iostream></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<br /></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<br /></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">int main()</span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">{</span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> char str[10]; </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: blue; font-family: Tahoma; font-size: x-small;">ofstream svfile("example.txt"); </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: blue; font-family: Tahoma; font-size: x-small;">svfile<<"I want to save this line of data as an example"; </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: blue; font-family: Tahoma; font-size: x-small;">svfile.close(); </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: lime; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: green; font-family: Tahoma; font-size: x-small;">ifstream rdfile("example.txt"); </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: green; font-family: Tahoma; font-size: x-small;">rdfile>>str; </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: green; font-family: Tahoma; font-size: x-small;">cout<<str font="" nbsp=""></str></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: green; font-family: Tahoma; font-size: x-small;">rdfile.close(); </span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">}</span></div>
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: center; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">تم الاعلان عن معاملين افتراضيين هما </span><span dir="ltr">svfile</span><span lang="AR-SA"> ليعمل مع الفئة </span><span dir="ltr">ofstream <span lang="AR-SA"> لتخزين البيانات والمتمثلة</span></span><span dir="ltr" lang="AR-SA"> تخزين العبارة </span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">I want to save this line of data as an example</span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">بعد ذلك استخدم معامل الفئة لاغلاق الملف بالدالة </span><span dir="ltr">close</span></span></div>
<div align="justify" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> والمعامل الثاني </span><span dir="ltr">rdfile</span><span lang="AR-SA"> ليعمل مع الفئة </span><span dir="ltr">ifstream</span><span lang="AR-SA"> لقراءة البيانات من الملفات وبالتحديد الملف المذكور </span><span dir="ltr">example.txt</span><span lang="AR-SA"> ثم تحميل البيانات الى متغير حرفي سبق الاعلان عنه واستخدام معامل الفئة لاغلاق الملف </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: lime; font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">المشكلة الواجب التنبيه عليها انه مع </span></span><span lang="AR-SA"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">الفئة</span></span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;"> ofstream </span></span><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">واذكرك بأنها هي التي تحفظ الملفات ان الملف الذي اعطيتها اسمه اذا لم يكن موجود فسوف ينشأ اما اذا كان موجود فسوف يلغى مابداخله وهذه مشكله فربما انك تفتح ملف موجود وتريد اضافة بيانات له او تعديل بيانات فيه ولذلك يجب اعطاء وتمرير بارامترات للدالة المستخدمة كما يلي</span></span></div>
<div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
</span><div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 450px;"> <tbody>
<tr><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 24%;" valign="top" width="24%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Flag </span></div>
</span></td><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 76%;" valign="top" width="76%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Function </span></div>
</span></td></tr>
<tr><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 24%;" valign="top" width="24%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;">ios::app</span><span style="background-color: yellow;"> </span></span></div>
</span></td><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 76%;" valign="top" width="76%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Opens an output file for appending. </span></div>
</span></td></tr>
<tr><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 24%;" valign="top" width="24%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;">ios</span><span style="background-color: yellow;">::ate </span></span></div>
</span></td><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 76%;" valign="top" width="76%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Opens an existing file (either input or output) and seeks the end. </span></div>
</span></td></tr>
<tr><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 24%;" valign="top" width="24%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;">ios</span><span style="background-color: yellow;">::in </span></span></div>
</span></td><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 76%;" valign="top" width="76%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Opens an input file. Use <span style="background: navy; color: white;">ios</span>::in as an open_mode for an ofstream file to prevent truncating an existing file. </span></div>
</span></td></tr>
<tr><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 24%;" valign="top" width="24%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;">ios</span><span style="background-color: yellow;">::out </span></span></div>
</span></td><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 76%;" valign="top" width="76%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Opens an output file. When you use <span style="background: navy; color: white;">ios</span>::out for an ofstream object without <span style="background: navy; color: white;">ios::app</span>, <span style="background: navy; color: white;">ios</span>::ate, or <span style="background: navy; color: white;">ios</span>::in, <span style="background: navy; color: white;">ios</span>::trunc is implied. </span></div>
</span></td></tr>
<tr><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 24%;" valign="top" width="24%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red; font-family: Tahoma; font-size: x-small;">ios</span></span><span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-color: yellow;">::nocreate </span></span></div>
</span></td><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 76%;" valign="top" width="76%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Opens a file only if it already exists; otherwise the operation fails. </span></div>
</span></td></tr>
<tr><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 24%;" valign="top" width="24%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red; font-family: Tahoma; font-size: x-small;">ios</span></span><span style="background-color: yellow;"><span style="color: red; font-family: Tahoma; font-size: x-small;">::noreplace </span></span></div>
</span></td><td align="center" style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 76%;" valign="top" width="76%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Opens a file only if it does not exist; otherwise the operation fails. </span></div>
</span></td></tr>
<tr><td style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 24%;" valign="top" width="24%"><span style="font-family: Arial;"> <div align="center" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;">ios</span><span style="background-color: yellow;">::trunc </span></span></div>
</span></td><td style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 76%;" valign="top" width="76%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Opens a file and deletes the old file (if it already exists). </span></div>
</span></td></tr>
<tr><td style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 24%;" valign="top" width="24%"><span style="font-family: Arial;"> <div align="center" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat;">ios</span><span style="background-color: yellow;">::binary </span></span></div>
</span></td><td style="padding-bottom: 3.75pt; padding-left: 3.75pt; padding-right: 3.75pt; padding-top: 3.75pt; width: 76%;" valign="top" width="76%"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;">Opens a file in binary mode (default is text mode). </span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<br /></div>
<div style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<br /></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;">ifstream svfile("mydata.txt", ios::nocreate); </span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<br /><span style="font-family: Arial;"></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الدرس العاشر </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: lime;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span><u><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red;">اوامر بدء التشغيل </span></span></u></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">مساء الخير </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">لايوجد برامج قابلة للتشغيل على نظام تشغيل دوس سوى الملفات ذات الامتداد </span>.bat <span lang="AR-SA">و</span><span dir="ltr">.com </span><span lang="AR-SA">و </span><span dir="ltr">.exe </span><span lang="AR-SA"> ومع نظام وندوز نفس الامتدادات ماعدا </span><span dir="ltr">.com</span><span lang="AR-SA"> الذي اختفى مع وندوز ولكن ربما يعترض البعض بأنهم تحت نظام وندوز يستطيعون تشغيل معظم الامتدادات مثل ملف ذو امتداد </span><span dir="ltr">.doc</span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> <span style="color: black;">اي ملف ميكروسوفت ورد بمجرد النقر على ايكونة الملف فكيف يتم ذلك وهل يتعارض ذلك مع ماقلناه سابقا.</span></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">بالطبع يتعارض ذلك مع ما قلناه سابقا وهي عبارة عن عملية وهمية حيث يتعرف نظام التشغيل على نوعية الملفات وامتدادها لكل برنامج ويسجل ذلك في قواعد بياناته حتى ان نظام التشغيل يعطي كمثال ايكون البرنامج للملفات التي ينتجها البرنامج كأن يأخذ ملف خطاب قمت بكتابته تحت ميكروسوفت ورد نفس ايكون برنامج ميكروسوفت ورد فمبجرد النقر على الملف يقوم النظام بالبحث في بياناته المسجلة ليعرف البرنامج الذي يتبعه هذا الملف ليقوم بتشغيله وتغذيته مبدئيا باسم الملف الذي تم النقر عليه وهذه العملية تسمى ب </span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue;">command line</span></span><span style="color: blue;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> وهي موضوع دراستنا اليوم</span></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">لنقوم بعمل تطوير للدالة الرئيسيه لبرنامج ليتقبل اوامر عند بدء تشغيله </span></span></span></div>
<div align="center" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><span dir="ltr"><span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">int main(int argc, char * argv[])</span></span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span></span></span></div>
</span><div align="center">
<span style="font-family: Arial;"> </span><table border="3" cellpadding="0" cellspacing="0" style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 119.3pt;" width="159"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: green; font-family: Tahoma; font-size: x-small;">الصيغة</span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 371.6pt;" width="495"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: green; font-family: Tahoma; font-size: x-small;">الشرح</span></span></div>
</span></td></tr>
<tr><td align="center" dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 119.3pt;" width="159"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;">int argc </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 371.6pt;" width="495"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: blue; font-family: Tahoma; font-size: x-small;">متغير عدد صحيح يشير الى عدد الاوامر المضافة عند بدء التشغيل وذلك بعد اسم البرنامج </span></span></div>
</span></td></tr>
<tr><td align="center" dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 119.3pt;" width="159"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span dir="ltr"><span style="color: blue; font-family: Tahoma; font-size: x-small;">char * argv[] </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 371.6pt;" width="495"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">كما ترى مصفوفة متغيرات حرفية تشمل عدة اوامر تخزن في المصفوفة ويفصل بينهما مسافات وتذكر مت نكرره دائما عناصر المصفوفات تبدء بالعنصر رقم صفر في لغة سي++</span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">لاتضع قيمة للمتغير </span><span dir="ltr">argc</span><span lang="AR-SA"> سيقوم البرنامج بتخصيص هذه القيمة ولكن داخل البرنامج اذا كشفت عن قيمة المتغير وكانت تساوي صفر وكانت رغبتك ان يدخل مستخدم البرنامج اسماء للبرنامج ليعمل عليها فيمكنك حينئذ ان توقف تشغيل البرنامج وتعطيه رسالة تحذير او خطأ بأنه لم يفعل المطلوب هل عرفت الآن فائدة هذا المتغير </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اما المصفوفة </span>argv<span lang="AR-SA"> فهي تحتوي المتغير الاول في العنصر </span><span dir="ltr">argv[0] </span><span lang="AR-SA"> والثاني في المتغير سيكون بعنصر المصفوفة </span><span dir="ltr">argv[1]</span><span lang="AR-SA"> وهكذا </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">مثال </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div dir="ltr">
<span dir="ltr"><span style="font-family: Tahoma;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-size: x-small;">Myprog.exe</span></span></span><span style="font-family: Tahoma; font-size: x-small;"> <span style="color: blue;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">mydatafile.txt</span> </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">سيكون</span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> Myprog.exe </span></span><span style="color: lime; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> </span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;">هو البرنامج و </span></span><span style="color: blue;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">mydatafile.txt</span><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> هو الامر المخزن في المصفوفه </span><span dir="ltr" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">argv[0]</span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">ويمكنك ايضا ان تضيف المسار الموجود فيه الملف المراد تحميله دون ان يعتبر ذلك امر اضافي مثل </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; text-align: left; unicode-bidi: embed;">
<span style="font-family: Tahoma;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-size: x-small;">Myprog.exe</span></span></span><span style="font-family: Tahoma; font-size: x-small;"><span dir="ltr"><span style="color: green;"> </span><span style="color: blue;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">c:\myfolder\mydatafile.txt</span> </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span><span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;">ولايكون دائما سطر الاوامر او البيانات المبدئية هي اسماء ملفات بل يمكن ان تكون ارقام يعمل عليها البرنامج عند بدء تشغيله مع الاخذ في الاعتبار ان تدخل في صورة حروف ويتم استخدام اوامر اللغة في تحويله الى ارقام يمكن العمل عليها</span> </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<br /><span style="font-family: Arial;"></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><b><span lang="AR-SA"><span style="color: blue; font-family: Arial; font-size: large;">الدرس الحادي عشر </span></span></b></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><b><span lang="AR-SA"><span style="color: lime; font-family: Arial; font-size: large;"> </span></span><u><span style="color: lime; font-family: Arial; font-size: large;"><span lang="AR-SA" style="color: red; font-size: 18pt;">الفئات </span></span></u></b></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">مساء الخير </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> الفئات تميز لغة سي++ وتعطيها ادوات قوية جدا فقد تقوم بعملها انت والكثير منها يأتي اليك جاهزا لتسهيل عملك واظهار برامجك في شكل جيد بقدر ماساعدت مطوري البرامج بقدر ماجعلتهم دائمي الاطلاع على ماهو جديد منها وعودة دائمة الى كتب اللغة الصادرة من الشركات مثل بورلاند وميكروسوفت والبرمجة تحت الوندوز ماهي الا فئات عديدة تورث صفاتها الى برامجك لتعمل تحت الوندوز ربما يكون هذا رد على من يقول اننا ندرس اللغة تحت الدوس انها مقدمة وعودة الى موضوعنا فالفئات تشبه الى حد كبير هياكل البيانات التى سبق وشرحناها في درس سابق ولكن يمكن ان يكون احد اعضائها دالة تعمل معها ويمكن ان تورث احدى الفئات صفاتها الى فئة اخرى واليك الشكل العام للفئة</span> </span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;">وستكون الفئة التي سننشئها تحت اسم</span> </span></span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">MyExample</span></span></span></div>
<div dir="ltr" style="direction: rtl; text-align: left; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span><span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;">#include <iostream .h=""></iostream></span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: lime; font-family: Tahoma; font-size: x-small;">class </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">MyExample</span><span style="font-family: Tahoma; font-size: x-small;"> </span></span></span><span style="color: black; font-family: Tahoma; font-size: x-small;">//Standard way of defining the class </span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">{</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: lime; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">public: </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> //This means that all of the functions below this(and any variables)</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> //are accessible to the rest of the program.</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> //NOTE: That is a colon, NOT a semicolon...</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">MyExample();</span></span><span style="color: black; font-family: Tahoma; font-size: x-small;"> //Constructor </span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">~MyExample();</span></span><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="font-size: 12pt;"><span style="color: black; font-family: Tahoma; font-size: x-small;">//Destructor </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> void setspeed(int p);</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> int readspeed();</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;"> </span> <span style="color: black;"> //These functions will be defined outside of the class </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: lime; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">protected:</span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">//This means that all the variables under this, until a new type of</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">//restriction is placed, will only be accessible to other functions in // the class. NOTE: That is a colon, NOT a semicolon...</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> int processorspeed;</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">}; //Do Not forget the trailing semi-colon</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">MyExample::MyExample() </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">{ //Constructors can accept arguments, but this one does not </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> processorspeed = 0; </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //Initializes it to zero </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">}</span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">MyExample::~MyExample() </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">{ //Destructors do not accept arguments </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">}</span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">//The destructor does not need to do anything.</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">void MyExample::setspeed(int p) </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">{ //To define a function outside put the name of the function </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //after the return type and then two colons, and then the name </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //of the function. </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> processorspeed = p; </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">} </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> int MyExample::readspeed() </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">{ //The two colons simply tell the compiler that the function is part </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> //of the clas </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> return processorspeed; </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">}</span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: cyan; font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">int main()</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;">{ </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="font-family: Tahoma; font-size: x-small;"> <span style="color: green;">MyExample compute; </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> //To create an 'instance' of the class, simply treat it like you would</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> //a structure. (An instance is simply when you create an actual object</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> //from the class, as opposed to having the definition of the class)</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> compute.setspeed(100); </span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> //To call functions in the class, you put the name of the instance,</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> //a period, and then the function name.</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<compute .readspeed="" font=""></compute></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> //See above note.</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> return 0;</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">}</span></span></div>
<br />
<div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">الشرح</span></span></span></div>
<br />
<div dir="ltr" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">لقد بدئنا بالسطور التالية </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">#include <iostream .h=""> </iostream></span></span></div>
<div dir="ltr">
<br /></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="font-family: Tahoma;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-size: x-small;">class</span></span></span><span style="font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue;">MyExample</span></span> <span style="color: black;">//Standard way of defining the class </span></span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">{</span></span></div>
<div dir="ltr">
<span style="font-family: Arial;"><span style="color: green; font-family: Tahoma; font-size: x-small;"> <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">public:</span> </span></span></div>
<br />
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الامر </span><span dir="ltr">calss</span><span lang="AR-SA"> للاعلان عن فئة يليه اسم الفئة وهو اختياري وتذكره جيدا فسوف تلتزم به فيما بعد في صياغة باقي هيكل الفئة ثم قوس لبداية بلوك الفئة ثم الامر </span><span dir="ltr">public:</span><span lang="AR-SA"> وهو بالطبع يعنى عام وكل متغير او دالة تعلن بعده معناها يمكن استخدامها في بقية اجزاء البرنامج يلي ذلك الاعلان عن باني الفئة وهي دالة تنفذ آليا بمجرد بداية عمل الفئة وصيغتها كما يلي </span></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">MyExample();</span></span><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">//Constructor</span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> اسمها ليس اختياريا ولكن عليك الالتزام باسم الفئة التي انشأتها ويوضع تحت هذه الدالة كما سيلي تفصيله ما تحتاج من تخصيص لمتغيرات عند بداية البرنامج </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">يلي ذلك هادم الفئة وهي دالة تستدى ايضا آليا عند انتهاء عمل الفئة ويمكن ان تضع فيها اوامر لتحرير الذاكرة مثلا من متغيرات تم تخصيصها او تهمل وضع اي شئ فيها حسب فكرة البرنامج وتكون بنفس اسم الفئة يسبقها العلامة </span><span dir="ltr">~ </span><span lang="AR-SA"> كما بالصيغة التالية </span></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></span></div>
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">~MyExample();</span></span><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">//Destructor</span></span><br />
<br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">كل ما سبق كان تحت الامر </span><span dir="ltr">public:</span><span lang="AR-SA"> كما تتذكر ثم تحته ايضا فنحن لم ننهي العمل معه بعد وضعنا اعلان عن دالتين عامتين هما </span></span></span></div>
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">void setspeed(int p);</span></span><br />
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> int readspeed();</span></span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">ثم دخلنا بعد ذلك الى الامر </span><span dir="ltr">protected: </span><span lang="AR-SA"> ومعناه كل ما سيعلن عنه بعد ذلك لا يستخدم الا في الدوال اعضاء الفئة ولا يستخدم في باقي اجزاء البرنامج وكان ذلك في الصورة التالية </span></span></span></div>
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: green; font-family: Tahoma; font-size: x-small;">protected:</span></span></span><br />
<br />
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">int processorspeed;</span></span><br />
<div align="right" dir="rtl" style="direction: rtl; text-align: left; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">}</span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">ثم انتهى الهيكل العام للفئة بقوس اغلاق البلوك ليبدء العمل في بناء الدوال المعلنه فكلها كانت اعلانات ولن يكون شكل الدالة بالطريقه السابق شرحها في درس الدوال لانها كانت دوال عامة ولكن ستأخذ شكل آخر لتعرف الكومبايلر انها تنتمي للفئة المعلنة وليس غيرها وستكون دالة الباني او باني الفئة اول دالة سننشئها هنا كما يلي </span></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></span></div>
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red; font-family: Tahoma; font-size: x-small;">MyExample::MyExample() </span></span></span><br />
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red; font-family: Tahoma; font-size: x-small;">{ </span></span></span><br />
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: red; font-family: Tahoma; font-size: x-small;">processorspeed = 0; </span></span><br />
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red; font-family: Tahoma; font-size: x-small;">}</span></span></span><br />
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">بدء الاعلان عن الدالة بوضع اسم الفئة ثم اسم الدالة وبالطبع اسم الفئة واسم الدالة شئ واحد كما اتفقنا ان باني الفئة يأخذ اسم الفئة كفرض عليك ثم وضعنا قيمة ابتدائية للمتغير </span><span dir="ltr">processorspeed</span><span lang="AR-SA"> تساوي صفر انتهازا لفرصة ان هذه الدالة اول ما ينفذ عند العمل على الفئة </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> ثم بناء دالة هادم الفئة وكما سبق شرحة هو ايضا اسم الفئة يسبقها العلامة </span><span dir="ltr">~</span><span lang="AR-SA"> وهي اخر دالة تنفذ وذلك كما يلي </span></span></span></div>
<span style="font-family: Arial;"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">MyExample::~MyExample() </span></span></span><br />
<span style="font-family: Arial;"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">{ //Destructors do not accept arguments </span></span></span><br />
<span style="font-family: Arial;"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">}</span></span></span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">لم نضع فيها شئ لعدم حاجتنا لذلك ثم بناء باقي الدوال اعضاء الفئة وسوف نرى فيها شكل الاعلان عن دالة عضو لفئة </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></span></span></div>
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">void MyExample::setspeed(int p) </span></span></span><br />
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">{ </span></span></span><br />
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: blue; font-family: Tahoma; font-size: x-small;">processorspeed = p; </span></span><br />
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">} </span></span></span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">لقد كان الاعلان عن الدالة داخل هيكل الفئة بالصورة التي تعودنا عليها وهي </span></span></span></div>
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;">void setspeed(int p);</span></span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="font-family: Arial;"><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">عبارة عن دالة لاتعيد قيمة بناء على الامر </span><span dir="ltr">void</span><span lang="AR-SA"> ثم اسم الدالة وبين القوسين القيمة التي ستمرر للدالة وهنا عبارة عن تمرير عدد صحيح للدالة كل ذلك سبق ان شرحناه ولكن الجديد هنا هو عنوان الدالة عند أنشائها كان كما يلي </span></span></span></div>
<div style="text-align: justify;">
<span style="font-family: Arial;"><b><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></b></span></div>
<span style="font-family: Arial;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; font-weight: 700;"><span style="color: blue; font-family: Tahoma; font-size: x-small;">void MyExample::setspeed(int p)</span></span></span><br />
<br />
</span><div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 87pt;" width="116"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">void</span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">نوع الدالة </span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 87pt;" width="116"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">MyExample</span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اسم الفئة التي تنتمي لها </span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 87pt;" width="116"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">::</span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">زوجين من نقطتين فوق بعضهما</span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 87pt;" width="116"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">setspeed</span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اسم الدالة </span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 87pt;" width="116"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;">(int p)</span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">القيم الممرة للدالة</span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div align="left">
<br /></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">سوف اوفر عليك جهد التفكير في ذلك ضع نفس الاعلان عن الدالة كما هو وبعد نوع الدالة وقبل اسمها ضع اسم الفئة يليها نقتطتين وهذه امثلة</span></span></div>
</span><div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 450px;"> <tbody>
<tr><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 181.65pt;" valign="center" width="200"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">الاعلان داخل الفئة</span></span></div>
</span></td><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 283.65pt;" valign="center" width="378"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">شكل الاعلان في تعريف وبناء الدالة </span></span></div>
</span></td></tr>
<tr><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 181.65pt;" valign="center" width="200"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">void seeme (void) </span></span></div>
</span></td><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 283.65pt;" valign="center" width="378"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red;">void</span></span><span style="color: blue;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">ItsCalssName::</span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red;">seeme (void) </span></span></span></div>
</span></td></tr>
<tr><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 181.65pt;" valign="center" width="200"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">int seeme (void) </span></span></div>
</span></td><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 283.65pt;" valign="center" width="378"><span style="font-family: Arial;"> <blockquote>
<div align="center" style="text-align: center;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red;">int</span> <span style="color: blue;">ItsCalssName::</span> <span style="color: red;">seeme (void) </span></span></span></div>
</blockquote>
</span></td></tr>
<tr><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 181.65pt;" valign="center" width="200"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">float seeme (void) </span></span></div>
</span></td><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 283.65pt;" valign="center" width="378"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red;">float</span> <span style="color: blue;">ItsCalssName::</span> <span style="color: red;">seeme (void) </span></span></span></div>
</span></td></tr>
<tr><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 181.65pt;" valign="center" width="200"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">void seeme (int a) </span></span></div>
</span></td><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 283.65pt;" valign="center" width="378"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red;">void</span></span><span style="color: blue;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> ItsCalssName::</span></span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> <span style="color: red;">seeme (int a) </span></span></span></div>
</span></td></tr>
<tr><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 181.65pt;" valign="center" width="200"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">void seeme (float a) </span></span></div>
</span></td><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 283.65pt;" valign="center" width="378"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red;">void </span><span style="color: blue;">ItsCalssName::</span><span style="color: red;">seeme (float a) </span></span></span></div>
</span></td></tr>
<tr><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 181.65pt;" valign="center" width="200"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">int seeme (float a) </span></span></div>
</span></td><td align="left" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 283.65pt;" valign="center" width="378"><span style="font-family: Arial;"> <div align="center" style="text-align: center;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"><span style="color: red;">int</span> <span style="color: blue;">ItsCalssName::</span> <span style="color: red;">seeme (float a) </span></span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">كان ذلك على فرض ان اسم الفئة التابع لها هو </span><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">ItsCalssName</span><span lang="AR-SA"> والذي يناظر معنا </span></span><span style="font-family: Tahoma; font-size: medium;"><span dir="ltr"><span style="color: black; font-size: x-small;">MyExample </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"> </span><span lang="AR-SA"><span style="color: black; font-family: Tahoma; font-size: x-small;">ثم تم بعد ذلك بناء باقي الدوال او الدالة الباقية كما يلي </span></span></div>
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">int MyExample::readspeed() </span></span><br />
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">{ </span></span><br />
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;"> return processorspeed; </span></span><br />
<span style="color: blue; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">}</span></span><br />
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> تم الانتهاء من بناء الفئة ودوالها حسب فكرة البرنامج ثم دخلنا الى الدالة الرئيسية بالبرنامج وأي برنامج آخر لنستدعي الفئة ونراها كيف تعمل </span></span></div>
<span style="color: black; font-family: Tahoma; font-size: x-small;">int main()</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">{</span><br />
<span style="color: lime; font-family: Tahoma; font-size: x-small;"> </span><span style="color: green; font-family: Tahoma; font-size: x-small;">MyExample compute; </span><br />
<span style="font-family: Tahoma; font-size: x-small;"> <span style="color: black;"> </span></span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> compute.setspeed(100); </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<compute .readspeed="" font=""></compute></span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //See above note.</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> return 0;</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">}</span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">لاستدعاء الفئة يجب ان نعطيها حدث او معامل مثل هياكل البيانات تماما فقد سبق ودرسنا ذلك وهو متغير اختياري نستخدمه لاستدعاء دوال الفئة وهنا افترضناه </span><span dir="ltr">compute </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><span style="color: black;">والاعلان عنه يكون باسم الفئة ثم هو اي المتغير الافتراضي كما يلي </span></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
<div align="center" style="text-align: center;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"> MyExample compute; </span></div>
<div align="center" style="text-align: center;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: green;"> </span></span><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">بعد ان اخترت اسم المعامل اصبح فرضنا عليك عدم تغييره ولاستدعاء دالة ضع اسم المعامل يليه نقطة والدالة المطلوبة تماما كما كان في هياكل البيانات </span></span></div>
<span style="color: black; font-family: Tahoma; font-size: x-small;"> compute.setspeed(100);</span><br />
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">استدعينا الدالة </span><span dir="ltr">setspeed</span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> <span style="color: black;">والمعلن عنها داخل الفئة بالشكل التالي للتذكره </span></span></span></div>
<div align="center" dir="ltr" style="direction: rtl; text-align: center; unicode-bidi: embed;">
<span dir="ltr"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">void setspeed(int p);</span></span></span></div>
<br />
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">وبالتالي مررنا اليها قيمة عددية وهي 100 وهل لاحظت شئ لقد استدعينا دالة عضو للفئة خارج فئة كيف ذلك – نعم لقد وضعناها تحت بند </span>public<span lang="AR-SA"> وقد قلنا عما يندرج تحته اقصد الامر </span><span dir="ltr">public </span><span lang="AR-SA"> ان دواله يمكن استخدامها في اي مكان وهي دوال عامة </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">تم تمرير القيمة 100 للدالة </span>setspeed <span lang="AR-SA">فبدء استدعاء باني الفئة ليخصص للمتغير القيمة صفر وبعد ذلك استعيت الدالة المطلوبة حيث يوجد بداخلها امر لتخصيص القيمة المررة للمتغير </span>processorspeed<span lang="AR-SA"> وداخل الدالة الرئيسة للبرنامج تم استدعاء دالة عامة من دوال الفئة وهي الدالة </span><span dir="ltr">readspeed</span><span lang="AR-SA"> وهي تعيد قيمة المتغير </span><span dir="ltr">processorspeed</span><span lang="AR-SA"> وذلك لطباعتها وهي 100 ايضا لتريك ان متغيرات الفئة مرئية بالنسبة لباقي الفئات دون الحاجة لاعادة الاعلان عنها داخل كل دالة من دوال الفئة. </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">ولبيان عمل باني الدالة لتعرف حقيقته دعنا نعدل البرنامج السابق وسوف اضع لون اصفر على التعديل الطفيف الذي سوف اجريه وسيكون على الصورة التالية </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: right; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"> </span></span></div>
<span style="color: black; font-family: Tahoma; font-size: x-small;">#include <iostream .h=""></iostream></span><br />
<br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">class Computer //Standard way of defining the class</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">{</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> public: </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //This means that all of the functions below this(and any variables)</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //are accessible to the rest of the program.</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //NOTE: That is a colon, NOT a semicolon...</span><br />
<br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">Computer();</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //Constructor</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> ~Computer();</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //Destructor</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> void setspeed(int p);</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> int readspeed();</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //These functions will be defined outside of the class</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">protected:</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //This means that all the variables under this, until a new type of</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //restriction is placed, will only be accessible to other functions in the</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //class. NOTE: That is a colon, NOT a semicolon...</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">int processorspeed;</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">}; </span><br />
<br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //Do Not forget the trailing semi-colon</span><br />
<br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">Computer::Computer() </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">{ //Constructors can accept arguments, but this one does not </span><br />
<span style="color: blue; font-family: Tahoma; font-size: x-small;"> processorspeed = 17; </span><br />
<span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;"> //Initializes it to zero </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">}</span><br />
<br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">Computer::~Computer()</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">{ //Destructors do not accept arguments</span><br />
<br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">} </span><br />
<br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">//The destructor does not need to do anything.</span><br />
<br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">void Computer::setspeed(int p) </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">{ //To define a function outside put the name of the function </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //after the return type and then two colons, and then the name </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //of the function. </span><br />
<span style="color: blue; font-family: Tahoma; font-size: x-small;"> processorspeed = p * processorspeed; </span><br />
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: black;">} </span></span><br />
<br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">int Computer::readspeed() </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">{ //The two colons simply tell the compiler that the function is part</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //of the clas</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> return processorspeed;</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">}</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> int main()</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">{</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> Computer compute; </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //To create an 'instance' of the class, simply treat it like you would</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //a structure. (An instance is simply when you create an actual object</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //from the class, as opposed to having the definition of the class)</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> compute.setspeed(100); </span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //To call functions in the class, you put the name of the instance,</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //a period, and then the function name.</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> cout<<compute .readspeed="" font=""></compute></span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> //See above note.</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;"> return 0;</span><br />
<span style="color: black; font-family: Tahoma; font-size: x-small;">}</span><br />
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">لقد وضعت في باني الفئة القيمة 17 بدلا من صفر للمتغير </span>processorspeed<span lang="AR-SA"> وقمت بتعديل الدالة </span><span dir="ltr">setspeed </span></span><span style="font-family: Tahoma; font-size: medium;"><span lang="AR-SA"><span style="color: black; font-size: x-small;"> لكي تكون قيمة المتغير عبارة عن قيمته السابقة اي التي سبق تخصيصها في الباني لانه اول ما يستدعى وتضرب هذه القيمة في القيمة الممررة بالمعادلة التالية </span></span></span></div>
<span style="font-family: Tahoma; font-size: x-small;"> <span style="color: blue;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat;">processorspeed = p * processorspeed</span>; </span></span><br />
<br />
<br />
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اي ان القيمة الجديدة تساوي القيمة القديمة اي 17 مضروبة في القيمة </span>p<span lang="AR-SA"> التي ستمرر للدالة لتصبح قيمة </span><span dir="ltr">processorspeed </span><span lang="AR-SA"> = 17*100 اي 1700 </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA">اذا نفذت البرنامج سوف تعيد الدالة </span><span dir="ltr">readspeed</span><span lang="AR-SA"> قيمة المتغير الجديدة 1700 وبالتالي اتضحت امامك فائدة باني الفئة ولك مني كل تحية </span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><br /></span></span></div>
<div dir="rtl" style="direction: rtl; text-align: justify; unicode-bidi: embed;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA"><br /></span></span></div>
</span><span style="font-family: Arial;"><div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></span></div>
</span><span style="font-family: Arial;"><div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></div>
<div dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><br /></span></div>
</span></div>
Anonymoushttp://www.blogger.com/profile/08900978179572895284noreply@blogger.com0tag:blogger.com,1999:blog-3320190962645860783.post-41058602294608873432016-07-03T06:54:00.000-07:002016-07-05T18:25:19.320-07:00<div dir="rtl" style="text-align: right;" trbidi="on">
<h2 style="text-align: right;">
كتب دوارت في البرمجيات الحاسبات الغير مطورة تعتتبر تاريخ الالكترونيات <a name='more'></a></h2>
<div style="text-align: right;">
اليوم سأرفع لكم كتب تقريبا شبه منقرظة في العالم ولكن تدرس في الجامعات العراقية للبرمجات وهي لغة قديمة صحيح هي الاساس في اللغة ولكن يجب ان يكون تتطور في مجموعة البرمج نحن الان نتستخدم ويندوز 7 في دوائر الدولة ليس لدينا الاتطور الكافي لهذه الخاصية مع انها مفيد جدا نتعمد على الدول الصيدقة في هذه الامور مع انه لدينا علماء و محترفين في امور البرمجة و لكن مع الاسف لا احد يعير اهمية اللغات التي ندرسها هي لغة الباسكال ولغة السي بلص و لغة ال html و غيرها من الغات البرمجية . ولكن هناك تطور كبير في هذه الغات في الوقت نفسة و نحن الى حد الان لانستطيع النواكبه او نصل الى مستوى العلمي و سوف ارفع لكم هذه الكتب ان شاء الله هذا النقل للاستفادة </div>
<div style="text-align: right;">
<br /></div>
<div style="text-align: right;">
<br /></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: "arial";"><span style="font-size: x-large;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">تعلم سي </span> <span lang="en-us" style="mso-fareast-font-family: MS Mincho;">++</span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "arial"; font-size: large;">الدرس الاول </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: lime; font-family: "arial"; font-size: medium;"> </span></span><span style="color: lime; font-family: "arial"; font-size: medium;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';">اساسيات سي بلس بلس </span></span></u></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">مساء الخير </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">انا اقول مساء الخير لانني لا افتح الانترنت الا في المساء واظنكم جميعا كذلك سنبدء اليوم سلسلة دروس عن لغة سي بلس بلس انها لغة صعبة ولكنها قوية جدا اريدك ان تعرف معلومة هامة كلمة كانت لغة البرمجة صعبة كلما كانت قوية واذا كنت تتعلم لغة الآن واحسست بسهولتها فيجب ان تعلم انها لغة ليست قوية هذا رأيي الخاص واظنه شئ صحيح احب ان تعرف معلومة اخرى ان لغة سي بلس بلس ليست هي لغة سي مع التشابه الكبير لاوامر ودوال اللغتين المهم معنا الآن اننا نتعامل مع لغة سي بلس بلس واضيف شئ اخير انك اذا لم تفهم هذه الدروس فمعنى ذلك انني اخفقت في الشرح والتوضيح وتأكد حينها ان العيب عندي انا وليس عندك ولكي نبدء دروسنا يجب عمل الآتي. </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">2-<span style="font-style: normal; font-variant: normal;"> </span>ارجو ان تغفر لي اي اخطاء املائيه فأنا اكتب بسرعة </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l2 level1 lfo2; tab-stops: list 36.0pt; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">3-<span style="font-style: normal; font-variant: normal;"> </span>ارجو ألا تعتبر كتابتي لمصطلحات انجليزية بحروف عربية جهل او غباء مني ولكن فقط لاسباب خاصة بتحرير الصفحة فالسهل عندي كتابة كل شئ باللغة الانجليزيه ولكن لن تكون هذه الدروس مفيد – ألست معي في ذلك – ارجو ذلك</span><span style="color: maroon; font-family: "arial"; font-size: medium;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "arial"; font-size: medium;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "arial";"><u><b>متطلبات العمل </b></u></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l1 level1 lfo4; tab-stops: list 36.0pt; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">1-<span style="font-style: normal; font-variant: normal; font-weight: normal;"> </span>كومبايلر للغة ودعني اقول لك ماهو الكومبايلر حتى وان كنت تعرفه انه البرنامج الذي يحول البرنامج الذي تكتبه الى برنامج تنفيذي قابل للتشغيل والتوزيع والبيع الى آخر ذلك وهناك انواع كثيرة مثل </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: white; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: 'MS Mincho';"><span style="color: green; font-family: "tahoma"; font-size: x-small;">Borland C++ </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: 'MS Mincho';"><span style="color: green; font-family: "tahoma"; font-size: x-small;">Microsoft Visual C++ </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: 'MS Mincho';"><span style="color: green; font-family: "tahoma"; font-size: x-small;">Watcom C/386 </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: 'MS Mincho';"><span style="color: green; font-family: "tahoma"; font-size: x-small;">DJGPP. </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">انا انصح بالكومبايلر الاول او الثاني أما الثالث والرابع فلم اجربهم ولست في حاجة اليهم ولست اقصد بذلك الا تستعملهم ولكن فقط لم اجربهم</span> </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">استعد انت الآن لبداية التعلم اما انا من ناحيتي فسوف اطفئ سيجارتي (ادعو لي بالاقلاع عن التدخين) لكي نبدء فورا </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">عن</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">د</span><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> تعلم لغة كومبيوتر جديده اصبحت عادة ان تقوم بطبع رسالة هالو ورلد</span></span><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: white; font-family: "tahoma"; font-size: x-small;"> </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-size: x-small;"><span style="font-family: "tahoma";">Hello World </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: white;">ب</span>الطبع هم يخاطبون العالم ولهم الحق في ذلك ولكن انا سوف اطبع رسالة هالو آراب</span> </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-size: x-small;"><span style="font-family: "tahoma";">Hello Arab </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">مع عدم وجود اي عنصرية مني فأنا لست كذلك ولن أكون ولكن اسمحو لي بتحية من اكتب لهم لا تنزعج معي دائما قد اكون رغاي بعض الوقت ولكن ليس كل الوقت </span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">// This is the 1st lesson </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">#include <iostream .h=""> </iostream></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">int main() </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> cout<<"HEY, Hello ِArabs"; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> return 0; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">} </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">دعونا نشرح ما كتبنا لقد بدأت بالعبارة الآتية</span><span style="color: white;"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span dir="rtl" lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-size: x-small;"><span style="font-family: "tahoma";">// This is the 1st lesson </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">عند كتابة // معناها انني اكتب ملاحظات وبالتالي كل ما يليها لايهم الكومبايلر عند الترجمة وفائدة الملاحظات عظيمة فكلما كتبت جزء من البرنامج وضحت هاتين العلامتين وبعدها ماتريد ان تقوله لنفسك او لمن يراجعون بعدك ماذا تفعل فاءذا عدت لتعديل البرنامج بعد فترة من الزمن سيكون ذلك رائع ان تتذكر افكارك في البرنامج موضع التعديل والآن الى التعليمة التالية لقد كتبنا</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-size: x-small;"><span style="font-family: "tahoma";">#include <iostream .h=""> </iostream></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">العلامة # يليها امر </span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;">include</span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"> </span><span lang="AR-SA"><span style="font-family: "tahoma"; font-size: x-small;">هي من تعليمات المعالج المبدئي </span></span></span></div>
<center>
</center>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-size: x-small;"><span style="font-family: "tahoma";">Preprocessor directive </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "arial";"></span></span></span></span></span></div>
<center>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لاحظ ان اوامر اللغة تكتب بالحروف الانجليزية الصغيرة</span><span style="mso-fareast-font-family: MS Mincho;"> </span></span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">يلي ذلك مابين القوسين <> اسم ملف ينتهي بالامتداد </span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;">h</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">هذا النوع من الملفات يسمى </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">header files</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وهي ملفات تأتي مع كومبايلر اللغة وان كنت ستتعلم في مرحلة متقدمة من هذه الدروس عملية انشاء ملفاتك الخاصة وهي عبارة عن ملفات يوجد بها تعريف لاوامر اللغة المستخدمة داخل برنامجك وبالتالي لكل مجموعة اوامر ملفاتها الخاصة لا تقلق سوف تعرف كل ذلك قريبا </span></span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">اذا الاوامر المستخدمة في مثالنا السابق يحتاج الملف </span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;">iostream.h</span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"> </span><span lang="AR-SA"></span></span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وهذا الملف هام جدا ورئيسي دائما ضم هذا الملف باستخدام الامر </span></span></span></span></span></div>
</center>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-size: x-small;"><span style="font-family: "tahoma";">#include <iostream .h=""> </iostream></span></span></span></span></span></span></div>
<center>
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"> <div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ملخص</span><span style="color: white;"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
</span><div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-collapse: collapse; border-style: none; border-width: medium; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 96.05pt;" width="128"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">#include </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 281.95pt;" width="376"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">من اوامر لغة سي ++ (المعالج المبدئي)</span></span><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 96.05pt;" width="128"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">iostream.h </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 281.95pt;" width="376"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ملف او هدير فايل لتعريف الاوامر المستخدمة</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 96.05pt;" width="128"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma";"><></span></span><span style="color: blue; font-family: "tahoma";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 281.95pt;" width="376"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">اقواس لوضع الملف المطلوب ضمه او تحميله بينهما</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">ببساطة شديدة الامر cout الذي سيلي شرحة يحتاج الملف </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">iostream.h </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ننتقل الآن لشرح التعليمة التالية </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span></span></span></center>
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"></span></span></span><br />
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">int main() </span></span></span></span></span></div>
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";">
</span></span></span>
<br />
<center>
<span style="font-size: x-small;"><span style="font-family: "tahoma";">
<span style="font-family: "arial";"> <div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ومعناها الاعلان عن الدالة او جسم البرنامج الرئيسي الذي من خلاله نستدعي كل شئ ونعمل كل شئ وسوف نضع بداخله الاوامر كلها</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ولكن ما هو الامر </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">int</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">انه من اوامر الاعلان عن نوع المتغيرات ودعني اوضح ذلك </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span><div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-collapse: collapse; border-style: none; border-width: medium; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 186.05pt;" valign="top" width="248"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">امر اللغة الذي يعلن عن المتغير</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">نوع المتغير</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 186.05pt;" valign="top" width="248"><span style="font-family: "arial";"> </span><br />
<div align="center" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">int </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الاعلان عن اعداد صحيحة</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 186.05pt;" valign="top" width="248"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">float </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الاعلان عن اعداد عشرية</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 186.05pt;" valign="top" width="248"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">char </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الاعلان عن حروف</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 186.05pt;" valign="top" width="248"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">void </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لاشئ </span></span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وسوف نتعرض للانواع الاخرى فيما بعد وكمثال </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: white;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;">int<span style="mso-spacerun: yes;"> </span>x = 5;<span dir="rtl" lang="AR-SA"> </span></span></span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">int y = 65; </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">float z = 4.677777; </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">float q = 77.5443; </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">char *b = “Mohamad Hasan”; </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></span><span style="color: green; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">char *c = <span dir="rtl" lang="AR-SA">"</span>My Home Page”; </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لقد اعلنا ان الدالة الرئيسية للبرنامج نوعها او ستعيد في نهاية عملياتها عدد صحيح فقد تحتاج مثلا لعمل دالة لضرب عددين في بعضهما والنتيجة تعيدها الدالة حسب نوع الاعلان<span style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ويحدد ذلك الامر return وكما ترى اعاد الامر القيمة صفر وهو بالطبع عدد صحيح نتيجة الاعلان عن دالة تعيد اعداد صحيحة </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">فمثلا لو انشأنا دالة لاعادة اعداد عشرية يجب ان تعيد في نهايتها اعداد عشرية مثلا </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: lime; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="color: lime; font-family: "tahoma"; font-size: x-small;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">float<span style="mso-spacerun: yes;"> </span>NewFunc ()<span lang="AR-SA"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">{ </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">float x , y , z; </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">x = 10.5; </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">y = 11.67887; </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">z = x * y; </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">return z; </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">} </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لقد اعادت الدالة حاصل ضرب 10.5 * 11.67887 وحاصل الضرب هو عدد عشري لان نوع الدالة اعداد عشرية وهكذا دعنا نعود لبرنامجنا الاصلي</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span><div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-collapse: collapse; border-style: none; border-width: medium; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 123.05pt;" valign="top" width="164"><span style="font-family: "arial";"> </span><br />
<div align="center" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">int </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">نوع الدالة تعيد اعداد صحيحة</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 123.05pt;" valign="top" width="164"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">main </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">اسم الدالة الرئيسية اساسي وهام</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 123.05pt;" valign="top" width="164"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">() </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوسين مغلقين لايوجد داخلهم شئ في هذه المرحلة</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الى التعليمة التالية القوس<span style="mso-spacerun: yes;"> </span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">{</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">يجب ان يفتح به الدالة وتنتهي به ايضا لاحظ الاتجاه الى اليسار في بداية الدالة والى اليمين في نهايتها لتحديد بلوك الاوامر </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">والآن الى التعليمة التالية </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: lime;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;">cout<<"HEY, Hello <span dir="rtl" lang="AR-SA">ِ</span>Arabs";</span><span dir="rtl" lang="AR-SA"><span style="color: green;"> </span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الامر cout يليه القوسين << مفتوحين الى اليمين معناها اخراج ما بين علامتي الاقتباس </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span><div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-collapse: collapse; border-style: none; border-width: medium; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" valign="top" width="104"><span style="font-family: "arial";"> </span><br />
<div align="center" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">Cout << </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">امر طباعة على الشاشة</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" valign="top" width="104"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: "tahoma";">"<span style="mso-spacerun: yes;"> </span>"</span></span><span style="color: blue; font-family: "tahoma";"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" valign="top" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">علامات اقتباس لطبع الرسالة التي بينهما كما هي</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">الى الامر الاخير </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span dir="rtl" lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span></span></span></center>
<span style="font-size: x-small;"><span style="font-family: "tahoma";">
<span style="font-family: "arial";"></span></span></span>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="color: lime; font-family: "tahoma"; font-size: x-small;"> </span><span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">return 0;<span style="mso-spacerun: yes;"> </span></span></span></span></span></span></div>
<span style="font-size: x-small;"><span style="font-family: "tahoma";"><span style="font-family: "arial";">
<center>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وقد شرحناه اثناء تناولنا لموضوع انواع البيانات اخيرا ينتهي البلوك الرئيسي للبرنامج باعادة قيمة صفر وهو العدد الصحيح حسب الاعلان مع الدالة الرئيسيه بالامر </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">int</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وتتفق معى انه لايجب ان يكون صفر دائما ولكن كيفما تريد وحسب العمليات ولكن المهم ان يكون عدد صحيح 1 او 2 او غيرها لاننا اعلنا عن ذلك وعلينا الالتزام به والا سوف يعطي الكومبايلر رسالة خطأ </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> والى الامر الاخير<span style="mso-spacerun: yes;"> </span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">}</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">انه قوس نهاية البلوك ولاحظ انه الى اليسار ليغلق البلوك الذي فتح بمثله ولكن الى اتجاه اليمين والآن انتهى برنامجنا الافتتاحي والى ملاحظاتنا </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">تذكر أن </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo6; tab-stops: list 36.0pt; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">1-<span style="font-variant: normal;"> </span>اوامر اللغة تكتب بحروف صغيرة </span></span><span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">small letters</span></span><span style="color: yellow; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: navy; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo6; tab-stops: list 36.0pt; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">2-<span style="font-variant: normal;"> </span>البرنامج يبدء بأوامر المعالج المبدئي لضم الملفات </span></span><span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"># include</span></span><span style="color: yellow; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: navy; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo6; tab-stops: list 36.0pt; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">3-<span style="font-variant: normal;"> </span>الدالة الرئيسية <span style="mso-fareast-font-family: MS Mincho;">main يجب ان تكون موجودة </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo6; tab-stops: list 36.0pt; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">4-<span style="font-variant: normal;"> </span>يفتتح البرنامج بالقوس<span style="mso-fareast-font-family: MS Mincho;">} ويغلق بالقوس{ </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo6; tab-stops: list 36.0pt; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">5-<span style="font-variant: normal;"> </span>الملف الذي انشأته سيقوم برنامج التحرير بحفظه باسم ينتهي بالامتداد </span></span><span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">cpp</span></span><span style="color: yellow; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: navy; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo6; tab-stops: list 36.0pt; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">6-<span style="font-variant: normal;"> </span>جميع سطور البرنامج وبعد نهاية الاوامر والاعلانات نضع الفاصلة المنقوطة </span></span><span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">;</span></span><span style="color: yellow; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: navy; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: navy;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">بعد اقواس افتتاح البرنامج وبعد اوامر المعالج المبدئي وبعد اسم الدالة حاليا اقول لك نضعها فقط بعد الاوامر داخل بلوك الدالة ومعناها نهاية الامر اهتم بذلك </span></span><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">ماذا لو اعلنا عن نوع الدالة الرئيسية بالامر void ومعناه غير مطلوب منها اعادة شئ سيكون الامر return بدون قيم بالطبع او كما يلي </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">// This a modification no. 1<span dir="rtl" lang="AR-SA"> </span></span></span></div>
<center dir="ltr">
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">#include <iostream .h=""> </iostream></span></span></div>
<center dir="ltr">
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<center dir="ltr">
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">void main() </span></span></div>
<center dir="ltr">
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">{ </span></span></div>
<center dir="ltr">
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">cout<<"HEY, Hello <span dir="rtl" lang="AR-SA">ِ</span>Arabs"; </span></span></span></div>
<center dir="ltr">
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">return ;<span style="mso-spacerun: yes;"> </span></span></span></div>
<center dir="ltr">
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;">} </span></span></span></div>
<center dir="ltr">
<div dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لاحظ الامر return لم يوضع بعده قيم </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">وتذكر ان مايلي // هي عبارة عن ملاحظات لسطر واحد فقط وكلما وضعت سطر ملاحظات ضع هاتين العلامتين في بداية السطر </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma";"><span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">// This is a remark no. 1 </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma";"><span style="font-size: x-small;">// And this is the remark no. 2 </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma";"><span style="font-size: x-small;">// It is no. 3 </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">وهناك اسلوب اخر لكتابة الملاحظات في عدة سطور بأن تبدء بالعلامة /* </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">ثم تكتب ما شئت من ملاحظات في اي عدد من السطور ثم تنهيها بالعلامة */ </span></span><span lang="AR-SA" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"> </span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">مع ملاحظة الاتجاهات وتكون الملاحظات السابقة بالاسلوب الذي شرحناه كما يلي </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma";"><span style="font-size: x-small;">/* </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma";"><span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> This is a remark no. 1 </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma";"><span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> And this is the remark no. 2 </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma";"><span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> It is no. 3 </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">*/ </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لاحظ الفرق لكي يتضح لك الشرح استخدم ايهما او ما تراه اسهل لك منهم اقصد من الاسلوبين السابقين </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<h3 dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: center; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="background-color: lime;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> الدرس الثاني </span></span></span></h3>
<h3 dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><br /></span></span></h3>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<table border="0" cellpadding="0" cellspacing="0" style="width: 725px;"><tbody>
<tr><td height="24" width="723"><span style="font-family: "arial";"></span><br />
<div align="center" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><b><span style="color: blue; font-family: "tahoma"; font-size: x-small;"> </span></b></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="right" width="723"><span style="font-family: "arial";"> </span><br />
<div class="Section1">
<span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></span></div>
<span style="font-family: "arial";">
</span>
<br />
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">انا اقصد بكلمة البرمجة العادية التمييز بينها وبين البرمجة بالاهداف أو </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">Object oriented languages </span></span></span></div>
<span style="font-family: "arial";">
</span>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">التي تستخدم مع لغات السي ++ والجافا ++ وغيرها </span></span></span></div>
<span style="font-family: "arial";">
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">ولكي تتعلم لغة برمجة عادية يجب ان تبحث في كيفية تعلم الآتي بصرف النظر عن مواضيع الكتاب</span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">الذي تتعلم منه وسنشرح كل جزئية وليس شرح للغة معينة وان استعنا ببعض الامثلة من لغة السي </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">أولا : يجب ان تعرف كيف تعلن عن المتغيرات التي سوف تستخدمها في برنامجك </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><u><span style="color: black; font-family: "tahoma"; font-size: x-small;">ماهي المتغيرات</span></u></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">لابد ان يحتوي اي برنامج على متغيرات اي أوعية لوضع البيانات فيها حسب نوع البيان فالاسماء هي متغيرات حرفية والاعداد هي اما اعداد صحيحة او عشرية مثلا فمثلا بيانات موظف يقوم احد البرامج بالعمل عليها اتخيل ان تكون كما يلي </span></span></div>
<center>
</center>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</span><br />
<div align="center">
<span style="font-family: "arial";"> </span><br />
<center>
<span style="font-family: "arial";"> </span><table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 450px;"> <tbody>
<tr><td align="center" width="450"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">المتغير</span></span></span></div>
<span style="font-family: "arial";">
</span>
<br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">(الوعاء الذي سيستقبل البيانات)</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" width="450"><span style="font-family: "arial";"> </span><br />
<div align="center">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">النوع المفترض ان يكون (منطقيا)</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr"><span style="color: green;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" width="450"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">اسم الموظف</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" height="28" width="450"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">متوقع ان يكون مجموعة حروف</span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" width="450"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">رقمة الوظيفي</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" width="450"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">متوقع ان يكون عدد صحيح لانه لايوجد رقم موظف مثلا 3555.256</span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" width="450"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">الراتب الشهري</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" width="450"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">متوقع ان يكون عدد عشري به كسور مثل 355.5</span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</center>
</div>
<span style="font-family: "arial";"></span><br />
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">اذا لابد من التفكير في كيفية المتغيرات المناسبة لكل بيان فمثلا لو اخطأت واخترت بيان الراتب عدد صحيح فاذا كان راتبه وهو شئ متوقع 355.5 فلن يقبل لان البرنامج سوف يحوله الى عدد صحيح مقرب وهو 356 وهو ليس خطأ البرنامج وانما خطئك انت لانك اعلنت ان متغير الراتب عدد صحيح فما ذنب بائع الفاكهه اذا طلبت منه شراء تفاح وانت تقصد برتقال انما قام البائع بتنفيذ ما سمعه منك مثل هذا الخطأ يسمى خطأ منطقي لان الكومبيوتر لا يعترض عليه </span></span></span></div>
<span style="font-family: "arial";">
</span>
<br />
<center>
<span style="font-family: "arial";"> <div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">الخلاصة: </span></span></u></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">في كتب اللغة التي تريد تعلمها ابحث عن اوامر الاعلان عن المتغير وسأعطيك مثال بلغة السي </span></span></u></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></u></div>
<div align="justify" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400; text-decoration: none;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">بقى ان تعرف ان معظم اللغات تقدم حيز تخزين مختلف لكل نوع من البيانات وسيتضح ذلك كما يلي </span></span></div>
<div align="justify" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">متغيرات الاعداد الصحيحة </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA" style="color: red;"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></u></div>
</span><div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none; width: 450px;"> <tbody>
<tr><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-style: solid; border-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 177px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">ألامر حسب اللغة</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 0.5pt; border-top-style: solid; border-top-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 220px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">نطاق التخزين</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 0.5pt; border-top-style: solid; border-top-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 170px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">السعة بالبايت</span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 177px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">int </span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 220px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">0-32767 </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 170px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">2 </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 177px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">long </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 220px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">32768-2147483647 </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 170px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">4 </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 177px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"> </span></span><span style="color: blue; font-family: "tahoma"; font-size: x-small;">unsigned long </span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 220px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">2147483648-4294967295 </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 170px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">8 </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA" style="color: red;"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></u></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">فمثلا لتحديد رقم الموظف سوف نستخدم النوع الاول اذا كان اجمالي عدد الموظفين بالشركة لا يزيد عن </span></span></div>
</span></center>
<span style="font-family: "arial";"></span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">32767 ولانستخدم النوع الثاني مع انه مقبول والسبب ان النوع الثاني سوف يحجز اربعة بايتات للرقم </span></span></span></div>
<span style="font-family: "arial";">
</span>
<br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">في حين انني احتاج الى اثنين فقط مع المتغير الاول وبالتالي تتضخم ملفات البيانات بلا داعي </span></span></span></div>
<span style="font-family: "arial";">
</span>
<center>
<span style="font-family: "arial";">
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">المثال </span></span></div>
</span></center>
<span style="font-family: "arial";">
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> int SerialNo;</span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> long SerialNo; </span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> unsigned long SeialNo; </span></div>
</span><br />
<center>
<span style="font-family: "arial";"> <div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">بالطبع مع اللغة التي سوف تستخدمها ستختلف الصيغة لكن المنطق والفكرة واحدة</span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">متغيرات الاعداد العشرية </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA" style="color: red;"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></u></div>
</span><div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none; width: 450px;"> <tbody>
<tr><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-style: solid; border-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">ألامر حسب اللغة</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 0.5pt; border-top-style: solid; border-top-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 224px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">نطاق التخزين</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 0.5pt; border-top-style: solid; border-top-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 154px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">السعة بالبايت</span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">float </span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 224px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">3.4*E-38 to 3.4E38 </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 154px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">2 </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">double </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 224px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">1.7*E-308 to 1.7*308 </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 154px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">4 </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">long double </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 224px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">3.4*E-4932 to 1.1*E4932 </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 154px;" valign="top"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">8 </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">ملاحظة: </span></span></div>
</span></center>
<span style="font-family: "arial";"></span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: black; font-family: "tahoma"; font-size: x-small;">E</span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">38 معناها 10 اوس 38 او 10 مرفوعة الى القوة 38 ولايهمك ذلك الآن </span></span></span></div>
<span style="font-family: "arial";">
</span>
<br />
<div align="right" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال </span></span></span></div>
<span style="font-family: "arial";">
</span>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> float Salary ;</span></span></span></div>
<span style="font-family: "arial";">
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> <span dir="ltr">double Salary; </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> <span dir="ltr">long double Salry; </span></span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">بالطبع يمكنك استخدام المتغير الاول لتخزين راتب الموظف ولكن استخدم الثاني لتخزين اجمالي رواتب الموظفين </span> </span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">لاعطاء حيز تخزين اكبر </span></span></div>
</center>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: yellow; font-family: "tahoma"; font-size: x-small;"> </span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr">float S</span>alary;</span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> double TotalSalaries; </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span dir="ltr"><span style="color: black; font-family: "tahoma";"> </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">عند استخدام متغير ذو سعة تخزين اقل لاستيعاب رقم او بيان اكبر من سعته فلن يعترض البرنامج ولكن سوف </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">تحصل على نتائج خاطئة مثلما تريد سكب برميل من الماء في كأس صغير فلن يعترض الكأس ولكن سوف يأخذ<br />حاجته فقط والباقي سوف ينسكب على الارض </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">متغيرات الحروف </span></span></div>
</span><br />
<center>
<span style="font-family: "arial";"> <div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</span><div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none; width: 450px;"> <tbody>
<tr><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-style: solid; border-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">ألامر حسب اللغة</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 0.5pt; border-top-style: solid; border-top-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">نطاق التخزين</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 0.5pt; border-top-style: solid; border-top-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">السعة بالبايت</span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">char </span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">حسب التحديد</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">حسب التحديد</span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">بفرض انك خصصت اقصى عدد لاسم الموظف بثلاثين حرف </span></span></div>
</span></center>
<span style="font-family: "arial";"></span><br />
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="font-weight: 400;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">مثال </span></span></span></div>
<span style="font-family: "arial";">
</span>
<br />
<center>
<span style="font-family: "arial";">
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</span></center>
<span style="font-family: "arial";">
</span>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> char HisName [30];</span></span></span></div>
<span style="font-family: "arial";">
</span><br />
<center>
<span style="font-family: "arial";"> <div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">وينصح بعدم الاسراف في استخدام حيز تخزين اكثر مما تحتاج</span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">ألان وقد درست هذا الموضوع جيدا واقصد انواع المتغيرات حسب اللغة التي تتعلما عليك الانتقال للموضوع </span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">التالي </span></span></div>
</div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">ثانيا : يجب ان تعرف ماهي الاوامر في اللغة التي تستخدم لادخال البيانات </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">بعد ان خصصت متغيرات لكل نوع ابحث في كتب اللغة عن اوامر ادخال كل نوع من البيانات والصيغة التي </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">يجب ان تكتب بها </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">وكمثال من لغة سي </span></span></div>
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</span><div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none; width: 450px;"> <tbody>
<tr><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-style: solid; border-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">المتغير المفترض</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 0.5pt; border-top-style: solid; border-top-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 128.45pt;" valign="top" width="171"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">نوعه</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="background-attachment: scroll; background-image: url('none'); background-position: 0%; background-repeat: repeat; border-bottom-style: solid; border-bottom-width: 0.5pt; border-left-style: none; border-left-width: medium; border-right-style: solid; border-right-width: 0.5pt; border-top-style: solid; border-top-width: 0.5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 155.6pt;" valign="top" width="207"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">الامر حسب قواعد اللغة</span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">HisName </span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 128.45pt;" valign="top" width="171"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">حروف</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 155.6pt;" valign="top" width="207"><span style="font-family: "arial";"> </span><br />
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">gets (HisName) </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">HisSalary </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 128.45pt;" valign="top" width="171"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">اعداد عشرية وكسور</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 155.6pt;" valign="top" width="207"><span style="font-family: "arial";"> </span><br />
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">scanf (“%.2f” , HisSalry) </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: 0.5pt solid; border-left: 0.5pt solid; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 142.05pt;" valign="top" width="189"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">HisNumber </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 128.45pt;" valign="top" width="171"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">اعداد صحيحة</span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: 0.5pt solid; border-left: medium none; border-right: 0.5pt solid; border-top: medium none; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 155.6pt;" valign="top" width="207"><span style="font-family: "arial";"> </span><br />
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">scanf (</span><span dir="ltr" lang="AR-SA">“</span><span dir="ltr">%d</span><span dir="ltr" lang="AR-SA">”</span><span dir="ltr">,HisNumber) </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">كل لغة برمجة تعطيك اماكانات خاصة افحص كتب اللغة في هذا الموضوع وكمثال </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">تعطي لغة سي القياسية اوامر للتحويل مابين انواع المتغيرات وبعضها وكما ذكرنا سابقا مثلا ان الامر او الدالة </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">gets </span><span lang="AR-SA"> تقوم بادخال المتغيرات الحرفية فيمكن استخدامها </span></span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">لاستقبال الارقام كأنها حروف وتقوم داله اخرى بتحويل هذه الحروف الى ارقام </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال </span></span></div>
</span></center>
<span style="font-family: "arial";"></span><br />
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA"><span style="color: yellow; font-family: "tahoma"; font-size: x-small;"> </span></span></span></div>
<span style="font-family: "arial";">
</span>
<br />
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> <span dir="ltr">char buf [20];</span></span></span></div>
<span style="font-family: "arial";">
</span>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> int HisNumber; </span></span></span></div>
<span style="font-family: "arial";">
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (buf); </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">HisNumber = atoi (buf); </span></span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">اعلنا هنا عن متغير حروف فقط لاستقبال الارقام وبالطبع الدالة </span></span><span style="color: black; font-family: "tahoma";"><span dir="ltr"><span style="font-size: x-small;">gets </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">سوف تتعامل معها على انها حروف اي لا يمكن استخدامها في العمليات الحسابية تم استقبال البيانات اي الرقم المسلسل وتم وضعه في المتغير </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">buf </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">خاصة وهو كما تعرف سبق الاعلان عنه كمتغير حرفي يستقبل حروف ولكنك ادخلت ارقام لان البرنامج يسألك عن الرقم المسلسل للموظف وقد استقبلت الدلة </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">gets </span><span lang="AR-SA"> الرقم المسلسل ووضعته في </span></span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">المتغير </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">buf </span><span lang="AR-SA"> كحروف ميتة مع انه رقم </span></span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">اخيرا قامت الدالة </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">atoi </span><span lang="AR-SA"> بتحويل المتغير الحرفي </span><span dir="ltr">buf </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">الى متغير عدد صحيح ووضعته في المتغير </span></span><span style="color: black; font-family: "tahoma";"><span dir="ltr"><span style="font-size: x-small;">HisNumber</span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">والذي اعلن عنه كعدد صحيح </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: red; font-family: "tahoma"; font-size: x-small;"> </span></span></u></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">الخلاصة: </span></span></u></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">ابحث في كتاب اللغة التي تتعلما عن دوال التحويل وادرسها جيدا </span></span></u></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: red; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">ثالثا : يجب ان تعرف كيف تكتب المعادلات لانجاز الحسابات </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">هذا الموضوع بالذات تتفق فيه جميع لغات الكومبيوتر بلا استثناء وهناك بعض القواعد البسيطة التي يجب ان تعرفها </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">·</span></span><span lang="AR-SA" style="font-family: "symbol";"><span style="color: blue; font-family: "arial"; font-size: x-small;"><span style="font-family: "tahoma"; font-style: normal; font-variant: normal;"> </span></span></span><span style="font-size: medium;"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">لابد ان تحتوي المعادلة في طرفها الايسر على متغير واحد فقط واي عدد في </span></span><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">الطرف الايمن </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span><span style="color: black; font-family: "tahoma";"><span lang="AR-SA"><span style="font-size: x-small;">مثال </span></span></span></div>
</center>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> A = B + C * 5 –3</span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;">·</span><span style="font-family: "symbol";"><span style="color: black; font-family: "arial"; font-size: x-small;"><span style="font-family: "tahoma"; font-style: normal; font-variant: normal;"> </span></span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">جميع القيم الموجودة في الطرف الايمن تكون معلومة القيمة اي تم حسابها مثلا في معادلة سابقة</span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال </span></span></div>
</center>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">B = 5</span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">C = 10 </span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">A = B + C * 5 –3</span><span style="color: lime; font-family: "tahoma"; font-size: x-small;"> </span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">فقد تم تخصيص قيمة للمتغير </span></span><span style="color: black; font-family: "tahoma";"><span style="font-size: x-small;"><span dir="ltr">B </span><span lang="AR-SA"> و للمتغير </span></span><span dir="ltr"><span style="font-size: x-small;">C </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">ثم دخل البرنامج الى المعادلة الاخيرة لحساب قيمة </span></span><span style="color: black; font-family: "tahoma";"><span style="font-size: x-small;"><span dir="ltr">A </span> </span><span lang="AR-SA"><span style="font-size: x-small;">وقد علم تماما قيم الطرف الايسر </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">اي قيم </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">B </span><span lang="AR-SA"> و </span><span dir="ltr">C</span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">فاءذا كتبت مايلي سيكود خطأ قاتل </span></span></div>
</center>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-weight: 400;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">B = 5</span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">A = B + C * 5 –3 </span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">C = 10 </span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">لان البرنامج عرف قيمة المتغير بي ثم دخل الى المعادله ليحسب ايه وهو لا يعرف قيمة</span> </span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">المتغير سي حيث سيعلمها فيما بعد فرتب خطواتك لتون منطقية </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">·</span></span><span lang="AR-SA" style="font-family: "symbol";"><span style="color: black; font-family: "arial"; font-size: x-small;"><span style="font-family: "tahoma"; font-style: normal; font-variant: normal;"> </span></span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">كل من درس مبادئ الرياضيات يعلم ان القسمة على الصفر خطأ فادح واذا حدثت </span></span><span lang="AR-SA" style="font-family: "symbol";"><span style="color: black; font-family: "arial"; font-size: x-small;"><span style="font-family: "tahoma"; font-style: normal; font-variant: normal;"> </span></span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">سيتعطل البرنامج ويعطيك نظام التشغيل الرسالة المعروفة هذا البرنامج قام بعملية ممنوعة </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال </span></span></div>
</center>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">B = 7</span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">C = 7 </span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">D = B-C </span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">A = B/D</span><span style="color: lime; font-family: "tahoma"; font-size: x-small;"> </span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">قام البرنامج بالقسمة على صفر حيث ان قيمة بي = 7 وسي = 7 ودي</span> </span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">= بي – سي اي 7-7 وتساوي بذلك صفر ثم تأتي مرحلة انهيار البرنامج عندما يقسم بي على دي وقيمتها صفر بعد الحسابات السابقة (احذر ذلك ) </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> كل ماهو خطأ رياضي سيكون خطأ في البرنامج مثل حساب الجذر التربيعي لعدد اقل من الصفر وهكذا </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">·</span></span><span lang="AR-SA" style="font-family: "symbol";"><span style="color: green; font-family: "arial"; font-size: x-small;"><span style="font-family: "tahoma"; font-style: normal; font-variant: normal;"> </span></span></span><span style="color: green; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">حافظ دائما على ان يكون عدد الاقواس المفتوحة يساوي عدد الاقواس المغلقه </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">·</span></span><span lang="AR-SA" style="font-family: "symbol";"><span style="color: green; font-family: "arial"; font-size: x-small;"><span style="font-family: "tahoma"; font-style: normal; font-variant: normal;"> </span></span></span><span style="color: green; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">اقصد عدد الاقواس ذات الاتجاه اليمين = عدد الاقواس ذات الاتجاه اليسار </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">·</span></span><span lang="AR-SA" style="font-family: "symbol";"><span style="color: green; font-family: "arial"; font-size: x-small;"><span style="font-family: "tahoma"; font-style: normal; font-variant: normal;"> </span></span></span><span style="color: green; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">لان الكوميوتر عندما تفتح له قوس ايسر معناها بدء عملية حسابية منفصلة </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">·</span></span><span lang="AR-SA" style="font-family: "symbol";"><span style="color: green; font-family: "arial"; font-size: x-small;"><span style="font-family: "tahoma"; font-style: normal; font-variant: normal;"> </span></span></span><span style="color: green; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">حتى لوكانت داخل معادلة واحدة فاءذا لم تغلق بالقوس الايمن فمعنى ذلك عملية </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">·</span></span><span lang="AR-SA" style="font-family: "symbol";"><span style="color: green; font-family: "arial"; font-size: x-small;"><span style="font-family: "tahoma"; font-style: normal; font-variant: normal;"> </span></span></span><span style="color: green; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">لم تغلق وتنهار المعادلة وبالتالي البرنامج. </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال لاحظ فيه ان عدد الاقواس متساوي </span></span></div>
</center>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">A = (A+B) * ( C – D) – (Q * M)</span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; line-height: 150%; margin: 0px; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">رابعا : يجب ان تعرف اوامر القفز داخل اللغة التي تتعلمها </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">عمليات القفز المقصود بها ان البرنامج سيقوم بالقفز على مجموعة من الامر دون تنفيذها </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">ليتجه الى اجزاء اخرى داخل البرنامج لها أولوية حسب فكر المبرمج </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال </span></span></div>
</center>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">A = (A+B) * ( C – D) – (Q * M);</span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> goto final; </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: lime; font-family: "tahoma"; font-size: x-small;"> </span><span dir="ltr"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"> Z = 3 * m; </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: blue; font-family: "tahoma"; font-size: x-small;"> <span dir="ltr"> U = Z + 4; </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> final : </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> <span dir="ltr"> I = A * 10; </span></span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">اوامر القفز مثل </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">goto </span><span lang="AR-SA"> يليها عنوان لايتكرر حتى لايضل البرنامج طريقه وهو في مثالنا</span> </span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">العنوان </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">final </span><span lang="AR-SA"> جعلت البرنامج يقفز فوق المعادلتين </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</center>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></span><span style="color: green; font-family: "tahoma"; font-size: x-small;">Z = 3 * m;</span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-size: x-small;"><span dir="ltr"><span style="font-family: "tahoma";">U = Z + 4;</span></span></span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">ولا ينفذهم او يجري حساباتهم وقفز مباشرة حيث يوجد العنوان </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">final</span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">ليستكمل عمله من هناك وسوف تعرف فوائد ذلك في ختام هذا الشرح مع التطبيق الكامل </span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">خامسا : يجب ان تعرف اوامر الدوران داخل اللغة التي تتعلمها </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">الدوران او عمل </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">looping </span><span lang="AR-SA"> من الاوامر الاساسية في جميع لغات البرمجة فمثلا </span></span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">اذا كان البرنامج سيدخل اسماء الف موظف هل تعتقد انك ستكتب الف امر لادخال هذه الاسماء بالطبع ستكون حماقه ولكن لو وضعنا امر واحد فقط لادخال اسم الموظف وطلبنا من البرنامج الدوران الف مرة حول هذا الامر بالطبع سيكون شئ جميل ان يدخل الف بيان بمجهود بسيط نتيجة تسهيل اعطته لغة البرمجة </span></span><span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال لبرنامج غبي جدا جدا </span></span></div>
</center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></span><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (employer1);</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (employer2); </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (employer3); </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (employer4); </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (employer5); </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (employer6); </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (employer7); </span></span></div>
<center dir="ltr">
<div align="right" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">: </span></div>
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">اكتب نفس الاوامر حتى تصل للعدد الف شئ استفزازي بالفعل</span></span></div>
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;">: </span></div>
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;">: </span></div>
</center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (employer1000); </span></span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">ولكن مع الدوران </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> for (I = 0 ; I < 1000 ; I++){ </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">gets (employer [I]); </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">} </span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">ياله من شئ جميل فعلا حسب صيغة اللغة التي تستخدمها طلبنا من الكومبيوتر</span> </span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">انشاء عداد يعد من صفر الى الف ورمزنا لها بالرمز </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">I </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">ثم داخل العداد طلبنا منه ادخال الموظف رقم </span></span><span style="color: black; font-family: "tahoma";"><span style="font-size: x-small;"><span dir="ltr">I </span></span><span lang="AR-SA"><span style="font-size: x-small;"> وهو عداد متغير حتى يكتمل </span></span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">العداد بوصوله للالف ويكون قد تم تنفيذ الامر معه الف مرة بأدنى مجهود </span> </span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">وكلما تغير العد من 1 الى 2 الى 1000 تغير معه رقم الموظف بنفس الطريقة </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: red; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">الخلاصة </span></span></u></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">لاتلتفت الى صيغة الكود المكتوب فهو بلغة سي ونحن نتحدث عن اللغات عموما </span></span></u></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">فقط افهم الفكرة وابحث في كتب اللغة التي تتعلمها عن الصيغة المعتمدة لهذه اللغة </span></span></u></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">سادسا : يجب ان تعرف اوامر الشروط داخل اللغة التي تتعلمها </span></span></div>
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">الشرط هو افتراض معين يتوقف عليه عمليات اخرى فمثلا تريد ان تضع</span> </span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">شرط الا يدخل رقم موظف اكبر من الف لان عدد موظفين الشركة لايزيدون عن الف وبالتالي اذا ادخل من يعمل على البرنامج رقم موظف اكبر من الف </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">يقوم البرنامج باصدار رسالة تفيد بذلك وهكذا لها حالات كثيرة حسب فكرة </span> </span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">البرنامج </span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال </span></span></u></div>
</center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> scanf (“%d”,EmployerNumber);</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">if (EmployerNumber > 1000 ) </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">c<span dir="ltr">printf (“</span><span dir="ltr" lang="AR-SA">ثكلتك امك لايوجد موظف بهذا الرقم الا تعرف عدد زملائك اعد الادخال </span><span dir="ltr">“); </span></span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">وتستخدم الشروط ايضا في عمليات القفز اي عند شرط معين يتم القفز</span> </span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">بالطبع تعلم شكل اكبر من واصغر من ويساوي وصيغة كتابتها حسب اللغة التي تتعلمها </span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">سابعا : يجب ان تعرف كيف تبني دوال فرعية داخل اللغة التي تتعلمها </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">الدوال الفرعية </span></span><span style="color: black; font-family: "tahoma"; font-size: x-small;"><span dir="ltr">subroutines</span><span lang="AR-SA"> هي شبه برنامج صغير اذا كان عندك سلسله عمليات </span></span><span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">متشابهه سوف تجريها داخل البرنامج كثيرا وتكررها كثيرا فلا داعي لاعادة كتابتها كل مرة بل يكفيك ان تكتبها مرة واحدة وتطلق عليها اسم وكلما ذكرت هذا الاسم داخل البرنامج تتم تلك العمليات ويصبح هذا الاسم كأنه من اوامر اللغة ايضا مثال اخر </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">لنفرض ان هناك اوامر لرسم جدوال بأبعاد ومساحة معينة وتحتاج الى رسمة كثيرا فليس معنى هذا انك كل مرة تريد رسم الجدول ستعيد كتابة اوامره الكثيرة في كل مكان داخل البرنامج فقط جمع اوامر رسمه في روتين فرعي وسميه اسم وكلما ذكرت الاسم يتم رسم الجدول انه شئ رائع اليس كذلك انا اظن ذلك </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">كل ماعليك ان تبحث في تعليمات اللغة التي تتعلمها عن اسلوب وشكل بناء </span></span></u></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span lang="AR-SA"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">هذه الروتينات في الابواب المخصصة لذلك </span></span></u></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">ثامنا : يجب ان تعرف أوامر التخزين على الاقراص داخل اللغة التي تتعلمها</span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">بعد ان قمت بتخزين بيانات الموظفين عليك الآن بتخزينها على القرص حتى لاتفقد وتقوم باسترجاعها وقتما تشاء وكذلك اوامر الاسترجاع راجع هذه الجزئية في كتب اللغة التي تتعلمها وافضل وانصح بجعلها في مرحلة متأخرة من التعليم </span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; font-family: "tahoma"; font-size: x-small;"><span style="font-weight: 400; text-decoration: underline;">تاسعا : يجب ان اوامر اخراج البيانات على الشاشة او الطابعة داخل اللغة التي تتعلمها</span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">بالطبع هي المرحلة الاخيرة فأنت تريد ان ترى ثمرة عملك لكي يكون البرنامج مفيدا فما فائدة البرنامج اذا لم تظهر نتائجه </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">مثال </span></span></div>
</center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> cprintf ( “The employer’s name is “,HisName);</span></span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA">البرنامج يقوم بطبع القيمة المخزنة في المتغير السابق ان عرفناه سابقا</span> </span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;">كمتغير حرفي يحمل اسم الموظف ليقوم بطبع محتوياته </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">عاشرا : يجب ان تتعلم استخدام كومبايلر اللغة التي تستخدمها وهو الذي يقوم بعمل الملف القابل للتنفيذ</span></span><span lang="AR-SA" style="font-weight: 400;"><span style="color: lime; font-family: "tahoma"; font-size: x-small;"> </span></span><span style="font-weight: 400; text-decoration: underline;"><span style="color: red; font-family: "tahoma"; font-size: x-small;">من الكود الذي </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;">كتبته وكذلك اوامر الحذف والتحرير واستخدام قوائم المساعدة ومرعاة كتابة اوامر اللغة بصيغة سليمة </span></span></div>
<div align="right" dir="rtl" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> ألان لنطبق كل المراحل السابقه في برنامج واحد لنتعرف على الفكرة وكما ذكرت لك سابقا لاتهتم بالاوامر المكتوبة هنا فهي خاصة بلغة سي كمثال ولكن تختلف البرمجة من لغة لاخرى</span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: black; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">// This is a remark</span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">// This code fragment has been written by Eng. Mohamad hasan </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="font-weight: 400;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">الآن نعلن عن المتغيرات</span></span></div>
<div align="left" dir="ltr" style="direction: ltr; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-weight: 400;"><span style="color: green; font-family: "tahoma"; font-size: x-small;"> Struct MyData{</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Int EmployerNumber; </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Float HisSalry; </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Char [40] HisName , buf [40]; </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">}D; </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">int I; </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">double TotalSalries; </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">الآن نبدء ادخال البيانات بعمل دوران الف دورة</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">For (I = 0 ; I < 1000;I++){ </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">ادخال الاسم</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Gets (D.HisName); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">ادخال الرقم المسلسل</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">AgainBaby: </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Gets (buf); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">D.EmployerNumber = atoi (buf); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">If (D.EmployerNumber > 1000 ){ </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">هنا نضع شرط عدم الزيادة عن الف كرقم لموظف</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Printf (“Number is greater than 1000 , Please repeat again”); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Goto AgainBaby; </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">} </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">ادخال الراتب الشهري</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Gets (buf); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">HisSalry = atof (buf); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">استدعاء روتين فرعي لتخزين البيانات</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">HaySaveMyData (); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">}</span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">هنا سنقوم بعمل دوران الف مرة لاستدعاء الالف بيان المخزنه لعرضهم</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">For (I = 0 ; I < 1000;I++){ </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">والان سوف نضع روتين لاستدعاء البيانات من القرص</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">HayLoadThisRecord (I) </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">وهنا سوف نضع اوامر لعرض كل بيان تم تحميله من القرص</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Printf (“\n Employer No. %d“, D.EmployerNumber ); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Printf (“\n Employer Name %s“, D.HisName ); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Printf (“\n Salary . %.2f“, D.HisSalary ); </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">} </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">والآن الى الدوال الفرعية للتخزين</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Void HaySaveMyData (void) </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">{ </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">توضع اوامر الكتابة على القرص هنا (ليس موضوعنا في هذه المرحلة)</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">}</span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;"> </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">Void HayLoadThisRecord (int i) </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">{ </span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="rtl" lang="AR-SA"><span style="color: green; font-family: "tahoma"; font-size: x-small;">توضع اوامر التحميل من القرص هنا (ليس موضوعنا في هذه المرحلة)</span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: green; font-family: "tahoma"; font-size: x-small;">}</span></div>
</span></div>
</td></tr>
</tbody></table>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> <span style="background-color: lime;"></span></span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><a href="http://mohandes.net/WINDOWS/Desktop/Page5/ar_contact.html"><span style="color: white; font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"></span></span></a></span></div>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</span> </span></span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<h3 style="line-height: 150%; margin: 0px; text-align: center; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><u><b><span style="color: blue;"><span style="background-color: lime;">ان شاء الله انقل لكم بقية الدروس يوم بعد يوم </span></span></b></u><b><span style="color: blue;"><span style="background-color: lime;"> </span></span></b> </span></span></span></span></h3>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"> </span><br />
<table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 600px;"> <tbody>
<tr><td align="center"><span style="font-family: "arial";"> </span><br />
<div align="center">
<span style="font-family: "arial";"> </span><br />
<center>
<span style="font-family: "arial";"> </span><table border="0" cellpadding="0" cellspacing="0" dir="rtl" style="border-collapse: collapse; width: 760px;"> <tbody>
<tr><td align="center"></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<span style="font-family: "arial";"> </span><br />
<div align="center">
<span style="font-family: "arial";"> </span><br />
<center>
<span style="font-family: "arial";"> </span><table border="0" cellpadding="2" cellspacing="0" style="height: 44px; width: 653px;"> <tbody>
<tr><td height="40" valign="top" width="600"><span style="font-family: "arial";"> </span><br />
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; height: 18px; width: 600px;"> <tbody>
<tr><td bgcolor="#4a6bb5" width="18"><span style="font-family: "arial";"> </span><br />
<div align="center">
<span style="font-family: "arial";"><a href="file:///G:/%D9%83%D8%AA%D8%A8%20%D9%84%D8%BA%D8%A7%D8%AA%20%D8%A8%D8%B1%D9%85%D8%AC%D9%8A%D8%A9/c++%20%D8%AA%D8%B9%D9%84%D9%85%20%D9%84%D8%BA%D8%A9%20%D8%A7%D9%84%D8%A8%D8%B1%D9%85%D8%AC%D8%A9/C++/2_files/tplf.gif" imageanchor="1"><img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/2_files/tplf.gif" width="18" /></a></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr></tr>
</tbody></table>
<span style="font-family: "arial";"> </span><br />
<div align="center">
<span style="font-family: "arial";"> </span><br />
<center dir="ltr">
<span style="font-family: "arial";"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 590px;"> <tbody>
<tr><td align="center" colspan="5" dir="ltr" valign="top" width="590"><span style="font-family: "arial";"> </span><br />
<div align="right" class="MsoPlainText" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><b><span style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "arial";"> </span></span></b></span></div>
<span style="font-family: "arial";">
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="color: blue; font-family: "arial"; font-size: large;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">تعلم سي بلس بلس</span></span><span style="font-family: "arial"; font-size: large;"><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></b></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="color: blue; font-family: "arial"; font-size: large;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الدرس الثاني </span></span></b></div>
<div align="right" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="color: yellow; font-family: "arial";"><span lang="AR-SA" style="font-size: 20pt; mso-fareast-font-family: MS Mincho;"> </span></span></b></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="mso-fareast-font-family: MS Mincho; text-decoration: underline;"><span style="color: red; font-family: "arial"; font-size: large;">أوامر الاشتراطات </span></span></b></div>
<div align="right" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span lang="AR-SA" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "arial";"> </span></span></b></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">مساء الخير </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">من انتقلوا معنا الى الدرس الثاني يبدو انهم سوف يكملون المسيرة الى اخرها واتمنى انا ان اكملها معهم . </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">كما تحدثنا عن اللغات بصفة عامة وقلنا ان الاشتراطات من الامور الهامة في اي لغة والآن لانريد ان نعيد ما قلناه سابقا لندخل مباشرة في موضوع اليوم </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">المعنى البسيط والقريب لموضوع اليوم انك تريد من برنامجك ان يفعل اشياء معينه عند تحقق شروط معينه ولكن كيف نصيغ هذه الاوامر هذا هو موضوع اليوم </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">انك ترى الشروط دائما وربما بدون ان تدري فأول شئ فعلته اليوم عند اتصالك بالانترنت هو ادخال كلمة السر – أليس كذلك – نعم هو كذلك ولا شئ غيره – ان برنامج الاتصال قد وضع شرط صحة كلمة السر لكي يمكنك من الدخول وربما اشياء اخرى مثل عدم انتهاء مدة الاشتراك وصحة اسم المستخدم وهكذا كلها شروط انها ايضا موضوعنا هذا اليوم ومعظم الشروط المستخدمه لقيمتين هي هل هما متساويتان ام احدهما اكبر او اصغر بالاضافة الى المعاملات البولينية </span>Boolean operators<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ومن درس منكم علم الجبر سوف يتذكرها بسرعة ام من نسى او لم يدرسها اصلا فالموضوع بسيط جدا لانك تمارسه في حياتك اليومية ربما دون ان تدري وهي </span></span></div>
<div align="justify" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">AND , OR , NOT<span lang="AR-SA"> </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">كمثال من الحياة اليومية</span> </span></span></div>
<div align="justify" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">Ask<span style="mso-spacerun: yes;"> </span>Mohamad AND Ali<span lang="AR-SA"> </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">يجب ان تسأل محمد وعلى وليس واحد منهم فقط بل يجب ان يكون السؤال للاثنين</span> </span></span></div>
<div align="justify" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">Ask Mohamad OR ALI<span lang="AR-SA"> </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">اي يجب ان تسأل محمد او على يكفي فقط واحد منهم</span> </span></span></div>
<div align="justify" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">Ask Mohamad NOT Ali<span lang="AR-SA"> </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">اي يجب ان تسأل محمد وليس على فلو سألت على فان الشرط غير متحقق</span> </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">الجدول التالي يعبر عن طريقة صياغة المعاملات البولينية في لغة سي++ </span></span></div>
<div align="right" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span lang="AR-SA" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "arial";"> </span></span></b></div>
</span><br />
<div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl;"> <tbody>
<tr><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">التعبير أو الصيغة</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">التفسير</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">||</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">OR </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">&& </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td align="center" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">AND </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"></span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><b><span lang="AR-SA" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "arial";"> </span></span></b></span></div>
<span style="font-family: "arial";">
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">والجدول التالي يعبر عن العلاقات الشرطية وكيف تصاغ في لغة سي++ </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span><span style="font-family: "tahoma";"><span style="font-size: x-small;"> </span></span></span></div>
</span><br />
<div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">التعبير أو الصيغة</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">التفسير</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">> </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">اكبر من فتحة القوس في اتجاه الاكبر</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">< </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">اصغر من</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">== </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">يساوي (تذكر انهم علامتين متجاورتين</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">>= </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">اكبر من او يساوي</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;"><= </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">اصغر من او يساوي</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">!= </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لا يساوي</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"></span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></span></div>
<span style="font-family: "arial";">
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">تذكر جيدا خطأ من السهل ان تقع فيه ان الشروط غير التخصيص بمعنى انك عندما تخصص قيمة لمتغير فاءنك لابد ان تستخدم علامة يساوي واحدة فقط مثل </span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<center>
</center>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">A=5;</span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">B=A;</span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">C=18;</span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<center dir="ltr">
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">اما في صياغة شرط فاءنك لابد ان تضع علامتين اذا اشترطت التساوي مثل </span></span></div>
</center>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">if (A==B)<span lang="AR-SA"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">if (A==18) </span></span></div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">ارجو ان تنتبه لذلك</span><span dir="ltr" style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; mso-border-bottom-alt: solid windowtext .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">ولنأخذ مثال اليوم فقد تأخرنا كثيرا </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">// This is a remark do you remember ?<span lang="AR-SA"> </span></span></span></div>
<center>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">// It has no effection , just for you , is it? </span></span></span></div>
<center>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<center>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">#include <iostream .h=""><span style="mso-tab-count: 3;"> </span></iostream></span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">int main()<span style="mso-tab-count: 4;"> </span></span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">{ </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">int Num;<span style="mso-tab-count: 4;"> </span></span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-spacerun: yes;"><span style="color: navy;"> </span></span></span><span style="color: navy; font-family: "tahoma"; font-size: x-small;">cout<<"Please input a Number : ";<span style="mso-tab-count: 1;"> </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cin>>Num;<span style="mso-tab-count: 4;"> </span></span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>if(Num < 50)<span style="mso-tab-count: 4;"> </span></span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>{ </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cout<<"The Number is less than 50";<span style="mso-spacerun: yes;"> </span></span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>} </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">if(Num == 50)<span style="mso-tab-count: 2;"> </span></span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>{ </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cout<<"The Number is equal to 50";<span style="mso-tab-count: 2;"> </span></span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>} </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">if(Num > 50) </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{ </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cout<<"The Number is bigger than 50";<span style="mso-tab-count: 1;"> </span></span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>} </span></span></div>
<center>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"><span style="color: cyan;"> </span><span style="color: navy;"> </span></span><span style="color: navy;">return 0; </span></span></span></div>
<center>
<div dir="ltr" style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="left" dir="ltr" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; line-height: 150%; margin: 0px; mso-border-bottom-alt: solid windowtext .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; word-spacing: 0px;">
<span style="color: navy; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
</div>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><a href="http://mohandes.net/less1.html">السطور ذات اللون الازرق قد سبق شرحها لك في الدرس الاول – اذا كنت لا تتذكر عد الى الدرس الاول للمراجعة</a> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">لقد بدأت السطور الحمراء بالامر </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">cin<<num dir="rtl" span=""> </num></span></span></div>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</span></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
</center>
</div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">هذا الامر جديد علينا ان معناه ادخل قيمة المتغير <span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">Num</span> والذي اعلن عنه في بداية البرنامج على انه عدد صحيح فسوف يتوقف البرنامج عند هذا الامر ليطلب منك ادخال قيمة يخزنها في المتغير <span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">Num </span><span style="mso-spacerun: yes;"> </span>ليجري عليها العمليات التي تلي السطر المذكور سابقا </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">وألآن الى الاوامر التالية موضع شرحنا اليوم </span></span></div>
<center>
<span style="font-family: "arial";"> </span><center>
<span style="font-family: "arial";"> </span><center>
<span style="font-family: "arial";"> </span><center>
<span style="font-family: "arial";"> </span><center>
<span style="font-family: "arial";"> </span><center>
<span style="font-family: "arial";"> </span><center>
<span style="font-family: "arial";"> </span><center>
<span style="font-family: "arial";"> <center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<center>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">if(Num < 50)<span style="mso-tab-count: 4;"> </span></span><span dir="rtl" lang="AR-SA"></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>cout<<"The Number is less than 50";<span style="mso-spacerun: yes;"> </span> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>} </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">والقاعدة هي</span><span dir="ltr" lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>الامر </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">if </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>ويفتح قوسين عاديين بينهما شروط حسب القاعدة السابق شرحها في اول الموضوع ثم قوس لبداية بلوك تعليمات واحد لفتح بداية بلوك والاخر للتحديد نهاية بلوك ومابداخل القوسين عدة تعليمات ينفذها البرنامج اذا تحقق الشرط</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وهنا الشرط هو انك اذا ادخلت قيمة اصغر من 50 فمعنى ذلك تحقق الشرط وعليه سوف يطبع البرنامج الرسالة </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">cout<<"The Number is less than 50";<span style="mso-spacerun: yes;"> </span></span><span dir="rtl" lang="AR-SA"></span></span></div>
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">واذا لم يتحقق الشرط فلن يطبع الرسالة السابقه بل سيتحول الى السطور التالية</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">if(Num == 50)<span style="mso-tab-count: 2;"> </span></span><span lang="AR-SA"></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>cout<<"The Number is equal to 50";<span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>} </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">بنفس الاسلوب السابق يختبر الامر </span>if <span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>ماذا كان الرقم الذي ادخله المستخدم يساوي 50 فاذا كان ذلك صحيحا فسوف يقوم بتنفيذ الامر او الاوامر التي بداخل بلوك الشروط وهي</span> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"> <span style="mso-spacerun: yes;"> </span>cout<<"The Number is equal to 50";<span style="mso-tab-count: 2;"> </span></span><span lang="AR-SA"></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">فاءذا لم يتحقق الشرط فسوف لن ينفذ البرنامج مابداخل بلوك الشروط وينتقل الى السطور التالية </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">if(Num > 50)<span lang="AR-SA"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>cout<<"The Number is bigger than 50";<span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>} </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">فاذا تحقق الشرط هو ان العدد المدخل اكبر من خمسون فسوف ينفذ البرنامج الامر او الاوامر التي بداخل بلوك الشرط وهو الامر</span> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cout<<"The Number is bigger than 50";<span style="mso-tab-count: 1;"> </span></span></span><span dir="rtl" lang="AR-SA"></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">والا فسوف ينتقل البرنامج الى السطور التالية </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma";"><span style="color: navy; mso-fareast-font-family: 'MS Mincho'; mso-spacerun: yes;"><span style="font-size: x-small;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></span></span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-family: "tahoma"; font-size: x-small;">return 0;<span dir="rtl" lang="AR-SA"> </span></span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="left" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; line-height: 150%; margin: 0px; mso-border-bottom-alt: solid windowtext .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma";"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: navy; font-size: x-small;">} </span></span></span></div>
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; mso-border-bottom-alt: solid windowtext .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">حيث ينتهي البرنامج ويخرج وتذكر قوس اغلاق البلوك وهو البلوك الرئيسي للدالة </span>main </span></span></div>
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; mso-border-bottom-alt: solid windowtext .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="color: blue; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">البرنامج السابق هو برنامج بسيط يقوم باستقبال رقم منك ليتعرف عليه ما اذا كان هذا الرقم اصغر من او يساوي او اكبر من 50 وفي كل حالة حسب ماتدخل من ارقام سوف يطبع لك الرسائل </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: red; mso-ansi-font-weight: normal; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';">الرقم اصغر من 50 </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: red; mso-ansi-font-weight: normal; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';">الرقم يساوي 50 </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: red; mso-ansi-font-weight: normal; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';">الرقم اكبر من 50 </span></span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div align="right" dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; mso-border-bottom-alt: solid windowtext .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">بالطبع سوف تحصل على اجابة واحدة من الثلاثه حسب المدخلات </span></span></div>
</div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لنأخذ عدة اوامر شرطية في صورة فردية للشرح لدمج كل ماسبق شرحة في دالة واحدة </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">if (A == 5 && B == <span dir="rtl" lang="AR-SA">7</span>)<span lang="AR-SA"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: navy;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">نفذ هذه الاوامر عند تحقق الشرط</span> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">}<span lang="AR-SA"> </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الشرط هو ان تكون قيمة المتغير </span>A <span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>تساوي خمسة وقيمة المتغير </span>B </span><span style="font-family: "tahoma"; font-size: medium;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"><span style="mso-spacerun: yes;"> </span>تساوي 7 لتنفيذ ما بداخل بلوك الشروط فاءذا كانت مدخلاتك كما يلي</span></span><span style="font-size: x-small;"> </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 500px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="173"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">A </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="67"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">B </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">مدى تحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="173"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">3</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="67"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">2</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لايتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="173"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">5</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="67"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">3</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لايتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="173"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">3</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="67"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">7</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لايتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="173"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-family: "tahoma"; font-size: x-small;">5</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="67"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="font-family: "tahoma";"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-size: x-small;">7</span></span><span dir="ltr" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-bottom: 0.5pt solid windowtext; border-left: medium none; border-right: 0.5pt solid windowtext; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-family: "tahoma"; font-size: x-small;">يتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="173"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">7</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="67"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">5</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لايتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="173"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">1</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="67"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">2</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 245.45pt;" width="327"><span style="font-family: "arial";"> </span><br />
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لايتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">ولمثال آخر بلوك الشروط التالية</span><span style="color: white; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: white; font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">if (A > 5 || B <= <span dir="rtl" lang="AR-SA">7</span>)<span lang="AR-SA"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">{ </span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: navy; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-size: x-small;">نفذ هذه الاوامر عند تحقق الشرط</span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-size: x-small;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">}<span dir="rtl" lang="AR-SA"> </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وقد كان الشرط السابق ان تكون قيمة </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">A </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>اكبر من 5 أو قيمة </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">B </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>اصغر من او تساوي</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">7 فلو كانت ادخالاتك كمايلي </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</span><div align="center">
<span style="font-family: "arial";"> </span><br />
<table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: medium none; border-collapse: collapse; border-left: medium none; border-right: medium none; border-top: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 512px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="49"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">A </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="54"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: blue; font-family: "tahoma"; font-size: x-small;">B </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="272"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">مدى تحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="49"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">3</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="54"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">2</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="272"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لايتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="49"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">5</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="54"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">3</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="272"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لايتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="49"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">3</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="54"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">7</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="272"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لايتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="49"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-family: "tahoma"; font-size: x-small;">7</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="54"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="font-family: "tahoma";"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-size: x-small;">2</span></span><span dir="ltr" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="272"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-family: "tahoma"; font-size: x-small;">يتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="49"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">10</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="54"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue; font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;">8</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="272"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="color: blue;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;">لايتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
<tr><td style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="49"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-family: "tahoma"; font-size: x-small;">10</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" valign="top" width="54"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="font-family: "tahoma";"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-size: x-small;">7</span></span><span dir="ltr" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-size: x-small;"> </span></span></span></span></div>
<span style="font-family: "arial";">
</span></td><td style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm;" width="272"><span style="font-family: "arial";"> </span><br />
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "arial";"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"><span style="font-family: "tahoma"; font-size: x-small;">يتحقق الشرط</span></span><span style="font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="background-attachment: scroll; background-position: 0% 0%; background-repeat: repeat; color: red;"> </span></span></span></div>
<span style="font-family: "arial";">
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: "arial";"><div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">دائما يكون امامك حالة من اثنين مهما كانت الشروط التي تضعها </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-ansi-font-weight: normal; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';">الحالة الاولى تحقق الشرط او بمعنى آخر </span><span dir="ltr" style="color: red; mso-fareast-font-family: 'MS Mincho';">TRUE</span><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span lang="AR-SA" style="color: red; mso-ansi-font-weight: normal; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';">الحالة البديلة عدم تحقق الشرط او بمعنى </span><span dir="ltr" style="color: red; mso-fareast-font-family: 'MS Mincho';">FALSE</span><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ان مابداخل اقواس الشروط ولا اقصد بلوك الشروط هو عملية حسابية – دائما كل شئ بالنسبة للكومبيوتر هي عمليات حسابية كل شي في الدنيا يمكن ان يعبر عنه بارقام من اسمك الى صورتك مرورا بخريطة بلدك او نوع الفاكهة التي تحبها – كل شئ نعم كل شئ هو عمليات حسابية – ربما نتطرق الى ذلك لااحقا – لاادري قد يجبرنا احد الامثلة على شرح ذلك – وناتج العملية الشرطية بالنسبة للكومبيوتر هو اما </span>TRUE <span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>لينفذ مابداخل بلوك الشروط او </span>FALSE <span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>لينفذ شروط اخرى داخل بلوك </span>else<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> اذا كان موجودا او يستكمل باقي سطور البرنامج كما حدث مع المثال السابق هذا يقودنا الى امر آخر من اوامر الشروط وهو في لغة </span>c++ <span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>ودائما يكون تابع للامر </span>if <span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>وهو الامر </span></span></span></div>
</span></center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
</span></center>
</center>
</center>
</center>
</center>
</center>
</center>
</center>
<span style="font-family: "arial";"><span style="font-family: "arial";"></span></span><br />
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "arial";"><span style="font-family: "arial";"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">else </span></span></span></span></div>
<span style="font-family: "arial";"><span style="font-family: "arial";">
<center>
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">انت لاتحتاج الآن لان اقول لك ان اوامر لغة سي في مجملها تكتب بحروف صغيرة ودعني اكمل شرح الامر السابق انه امر غير مستقل انه تابع بالطبع انت توافقني على ذلك انك لايمكن ان تسمع شخص يقول والا – الا اذا كان قد ذكر اشياء قبلها اذا هذا الامر تابع فاذا كنت تكره الاشخاص التابعين من ذوي الشخصيات الضعيفة فارجو الا يمتد بغضك هذا الى الامر </span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;">else </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>لانه امر هام ويسهل خطوات كثيرة وان كان يسهل الاستغناء عنه ودعنا نعبر عن ذلك بعدة سطور</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">if(GiveMe >= 50)<span style="mso-tab-count: 4;"> </span></span><span lang="AR-SA"></span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>{ </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>cout<<"Thank you – I like to take more than or equal 50 Rayals";<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>} </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">else </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>cout<<"I am very angry – I don’t like to take less than 50 Rayals";<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="justify" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">جزء البرنامج السابق يعبر عن رد فعل احد الشحاذين فاذا اعطيته مبلغ اكبر من او يساوي 50 ريالا سوف يتحقق الشرط والنتيجة تكون <span dir="ltr" style="mso-fareast-font-family: MS Mincho;">TRUE </span><span style="mso-spacerun: yes;"> </span>لينفذ مابداخل بلوك الشروط لينفذ الامر الخاص بطبع رسالة شكر ليخبرك بأنه (الشحاذ ولست انا بالطبع) يقول لك شكرا انا دائما احب ان تعطيني مبلغ خمسون ريالا او اكثر واذا لم يتحقق الشرط اي ان نتيجة العملية الحسابية <span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">FALSE </span><span style="mso-spacerun: yes;"> </span>كأن تكون قد اعطيته اقل من 50 ريالا فسوف ينتقل التنفيذ مباشرا الى البلوك التابع <span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">else </span><span style="mso-spacerun: yes;"> </span>لينفذ مابداخل بلوكه وهي هنا رسالة ضيق وتبرم بأنه لايحب ان يأخذ اقل من خمسون ريالا حتى لوكانت المبلغ يقل بهللة واحدة فقط عن الخمسون ريالا انها عمليات حسابية ياصديقي العزيز وانا انصح من يمتهنون هذه المهنه ببرمجة روبوت بجزء البرنامج السابق مع مزيد من الشكر والادعية في حالة تحقق الشرط وتبرم وضيق ولامانع من سيل من الشتائم في حالة عدم تحقق الشرط . ياله من روبوت رائع وسوف يختزن بداخله مبالغ مالية كثيرة سواء لخفة دمه في حالة تحقق الشرط او لقلة ادبه في حالة عدم تحقق الشرط. </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">سوف نتختتم هذا الدرس بهذا الملخص الذي قد يقود الى قاعدة هامة </span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">if(FALSE)<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">{ </span></span><span lang="AR-SA" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>Not executed if its false<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green;"><span style="font-family: "tahoma"; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma"; font-size: x-small;">}<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span dir="ltr"><span style="color: green; font-family: "tahoma"; font-size: x-small;">else </span></span><span lang="AR-SA" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">{<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span>do all of this<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-align: left; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: "tahoma"; font-size: x-small;">}<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<div align="right" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-family: "tahoma"; font-size: x-small;"> </span></span></div>
</center>
</span></span><br />
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" style="width: 100%px;"><tbody>
<tr><td><span style="font-family: "arial";"> </span><br />
<div align="center">
<span style="font-family: "arial";"> </span><br />
<center>
<span style="font-family: "arial";"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 600px;"> <tbody>
<tr><td><span style="font-family: "arial";"> </span><br />
<table border="0" cellpadding="0" cellspacing="0" style="height: 1px; width: 100%px;"> <tbody></tbody></table>
</td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<br />
<br />
<br />
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 600px;"> <tbody>
<tr><td height="15" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: "arial";"> </span><br />
<div align="center">
<br /></div>
</td></tr>
<tr><td height="15" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: "arial";"> </span><br />
<table border="0" cellpadding="0" cellspacing="0" id="AutoNumber1" style="border-collapse: collapse; font-family: Arial; font-size: 10px; height: 18px; width: 760px;"> <tbody>
<tr><td height="18" width="18"><span style="font-family: "arial";"> <img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/2_files/btlf.gif" width="18" /></span></td><td bgcolor="#4a6bb5" height="18" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"></td></tr>
</tbody></table>
</td></tr>
<tr><td style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: "arial";"> </span><br />
<div align="center">
<span style="font-family: "arial";"> </span><br />
<center>
<a href="file:///G:/%D9%83%D8%AA%D8%A8%20%D9%84%D8%BA%D8%A7%D8%AA%20%D8%A8%D8%B1%D9%85%D8%AC%D9%8A%D8%A9/c++%20%D8%AA%D8%B9%D9%84%D9%85%20%D9%84%D8%BA%D8%A9%20%D8%A7%D9%84%D8%A8%D8%B1%D9%85%D8%AC%D8%A9/C++/3_files/btlf.gif" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"><img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/3_files/btlf.gif" style="cursor: move;" width="18" /></a><span style="font-family: "arial";"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 760px;"> <tbody>
<tr><td align="center" height="10" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<span style="font-family: Arial;"> </span><br />
<br />
<br />
<table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 600px;"> <tbody>
<tr><td align="center"><span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" dir="rtl" style="border-collapse: collapse; width: 760px;"> <tbody>
<tr><td align="center"><span style="font-family: Arial;"> </span></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="2" cellspacing="0" style="height: 44px; width: 760px;"> <tbody>
<tr><td height="40" valign="top" width="600"><span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; height: 18px; width: 600px;"> <tbody>
<tr><td bgcolor="#4a6bb5" width="18"><span style="font-family: Arial;"> <div align="center">
<img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/3_files/tplf.gif" width="18" /></div>
</span></td></tr>
<tr></tr>
</tbody></table>
<span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="width: 590px;"> <tbody>
<tr><td align="center" colspan="5" height="22" valign="top"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></b></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="font-family: Arial;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-size: large;">تعلم سي بلس بلس</span></span><span style="color: lime; font-size: large;"><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></span></b></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: blue; font-family: Arial; font-size: large;">الدرس الثالث </span></span></b></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: lime; font-family: Tahoma; font-size: x-small;"> </span></span></b></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><u><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: red; font-family: Tahoma; font-size: x-small;">الحلقات والتكرارات </span></span></u></b></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: lime; font-family: Tahoma; font-size: x-small;"> </span></span></b></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">مساء الخير </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">سندخل في الموضوع مباشرة بدون لف أو دوران مع ان الموضوع يتعلق بالدوران والتكرار لقد تحدثنا عن فكرة الحلقات التكرارية او </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">Loops</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> في المقال العام عن البرمجة اذا لم تكن قد قرأته <a href="http://mohandes.net/prog1.html">من فضلك راجعه الآن</a> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">طريقتين لعمل هذه الحلقات الاسلوب الاول بلامر </span><span style="mso-fareast-font-family: MS Mincho;">for </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>والثاني بالامر </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">while</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لنأخذ جزئية البرنامج التالي </span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: cyan; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><b><span style="color: green; font-family: Tahoma; font-size: x-small;">#include <iostream .h=""><span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 2;"> </span></iostream></span></b></span></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></b></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-spacerun: yes;"> </span></span></span></b></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>int x;<span style="mso-spacerun: yes;"> </span></span></span></b></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>for(x=0;x<100 font="" x=""></100></span></span></b></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-tab-count: 3;"> </span></span></span></b></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 3;"> </span></span></span></b></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="color: green;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;">cout<<x endl="" span="" style="mso-spacerun: yes;"> </x></span></span></span></b></div>
</span></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
</div>
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></span></span><div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>} </span></span></b></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span><span style="color: green; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: Tahoma; font-size: x-small;">return 0;<span style="mso-spacerun: yes;"> </span></span></span></b></div>
<div align="left" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;">} </span></span></span></b></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></b></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></b></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">السطور ذات اللون الازرق تناولنا شرحها <a href="http://mohandes.net/less1.html">بالدرس الاول</a> أما السطور ذات اللون الاحمر فهي موضوع دراستنا اليوم </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">تقوم الحلقات التكرارية بتنفيذ عدة اوامر موضوعة داخل بلوك ونقصد ببلوك مابين القوسين } مجموعة اوامر{ الى ان تنتهي الحلقات او عدد الحلقات المحددة منك وعددها في مثالنا السابق 100 حلقة تكرارية وبدقة تبدء الحلقات من رقم صفر الى رقم 99 ومعنى ذلك ان العدد الاجمالي 100 حلقة بعد حساب الصفر من ضمن الارقام انتبه لذلك وتذكر ان المتغير x يجب الاعلان عنه قبل استخدامه وذلك حسب نوع استخدامك له وهنا استخدمنا نوعه كعدد صحيح بالطبع يمكنك استخدامه كعدد عشري واليك صيغة الامر بالتفصيل </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></b></div>
<div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الصيغة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">التفسير</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">for </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">امر</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> اللغة لعملية التكرار</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">( </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوس مفتوح يوضح بداخله <span style="color: blue;">بارامترات</span> <span style="color: red;">الامر</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">x=0; </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">المتغير = رقم بداية الحلقات</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">x<100 span=""></100></span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">شرط نهاية الحلقات </span></span><span dir="ltr" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"> </span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">x++ </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">المتغير يزيد بمقدار واحد مع بداية كل حلقة – لاتضع بعده فاصلة منقوطة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">) </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوس نهاية <span style="color: blue;">بارامترات</span> <span style="color: red;">الامر</span> – لاتضع بعده فاصلة منقوطة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوس بداية بلوك الاوامر المطلوب تكرارها</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td colspan="2" dir="ltr" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-bottom: 0.5pt solid windowtext; border-left: 0.5pt solid windowtext; border-right: 0.5pt solid windowtext; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 437.2pt;" width="583"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">بداخل اقواس البلوك توضع الاوامر المطلوب تكرارها</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوس نهاية بلوك الاوامر المطلوب تكرارها</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></b></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">بداخل بلوك الاوامر تم تنفيذ الامر </span></span></div>
<center>
</center>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"><span style="color: cyan; font-family: Tahoma; font-size: x-small;"> </span><span style="font-family: Tahoma; font-size: x-small;"> </span></span><span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">cout<<x endl="" span=""></x></span></span></div>
</span><center>
<span style="font-family: Arial;"> <div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وهو امر يقوم بطبع قيمة </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">x </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>التي تتغير في كل مرة ابتداء من صفر حسب ماذكرت ان </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">X=0 </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>وتزيد في كل مرة بمقدار 1 حسبما ذكرت ان </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">x++ <span style="mso-spacerun: yes;"> </span><span lang="AR-SA">وذلك حتى يصل الى 99 حسبما ذكرت ان </span>x<100 span="" style="mso-spacerun: yes;"> </100></span><span lang="AR-SA"> </span></span></div>
</span></center>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">و</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">endl </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>تعني </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">end of line </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>اي انتقل الى سطر جديد كلما طبعت قيمة حتى لا يسرد طبع الارقام متجاورة بل يطبع على كل سطر قيمة المتغير وبالتالي ستكون مخراجات البرنامج كما يلي </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">0<span lang="AR-SA"> </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">1 </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">2 </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">3 </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">4 </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">99 </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لنستفيد اكثر من قوة الحلقات التكرارية وايضا نرى امكانات اخرى لها بوضع حلقة داخل حلقة كما يلى</span><span dir="ltr" style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>في البرنامج الذي يطبع جدول الضرب <span style="mso-spacerun: yes;"> </span>من جدول واحد حتى جدول 12 </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">#include <iostream .h=""><span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 2;"> </span></iostream></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>int x , y , z;</span></span><span style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></span><span style="background: yellow; mso-highlight: yellow;"><span style="font-family: Tahoma; font-size: x-small;">for(x=1;x<13 font="" x=""></13></span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="mso-spacerun: yes;"> </span>{</span></span><span style="color: red; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 3;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></span><span style="background: lime; mso-highlight: lime;"><span style="font-family: Tahoma; font-size: x-small;">for(y=1;y<13 font="" y=""></13></span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: lime; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: lime;"><span style="mso-spacerun: yes;"> </span>{</span></span><span style="color: red; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span>z = <span style="background: yellow; mso-highlight: yellow;">x</span> * <span style="background: lime; mso-highlight: lime;">y</span>;<span style="mso-tab-count: 2;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="mso-fareast-font-family: MS Mincho;">cout<<</span><span style="background: yellow; mso-highlight: yellow;">x</span><span style="mso-fareast-font-family: MS Mincho;"><<”*”<<</span><span style="background: lime; mso-highlight: lime;">y</span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><<”=”<<z endl="" span="" style="mso-spacerun: yes;"> <span style="color: cyan;"> </span></z></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span><span style="background: lime; mso-highlight: lime;">}</span> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><span style="background: yellow; mso-highlight: yellow;">}</span> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">return 0;<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">كما تعلم ان السطور الزرقاء سبق دراستها ولكن ننوه فقط اننا اعلنا عن ثلاث متغيرات لاعداد صحيحة الاول للحلقة الاولى والثاني للحلقة الثانية والثالث لاحتواء حاصل الضرب وهو الهدف من البرنامج.</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">بنفس ماسبق شرحه وضعنا حلقة تكرارية تبدء من رقم واحد وتنتهي برقم 12 وتزيد بمقدار واحد واوامر هذه الحلقة مكتوبة للتوضيح بخلفية صفراء حيث بدأت الحلقة بالصيغة السابق شرحها ثم قوس بداية البلوك وقوس نهاية البلوك حيث يوضع مابين القوسين سلسلة اوامر لتنفيذها كما سبق واتفقنا عليه </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></span><span style="background: yellow; mso-highlight: yellow;"><span style="font-family: Tahoma; font-size: x-small;">for(x=1;x<13 font="" x=""><span lang="AR-SA"></span></13></span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="mso-spacerun: yes;"> </span>{</span></span><span style="color: red; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 3;"> </span></span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: black;">اوامر مطلوب تنفيذها </span></span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">}</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وبداخل اقواس البلوك للحلقة الاولى مطلوب وضع اوامر للتنفيذ فكانت اوامر التنفيذ داخل البلوك عبارة عن حلقة اخرى وما المانع فالحلقات وغيرها هي نفسها اوامر والحلقه الاخرى كانت عبارة عن عداد يعد من الرقم 1 الى الرقم 12 وهي ايضا تحتاج الى صيغة معينة واقواس بلوك للتنفيذ وهي موضوعة في البرنامج بخلفية خضراء كما يلي </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="background-attachment: scroll; background-color: lime; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: lime;"><span style="font-family: Tahoma; font-size: x-small;">for(y=1;y<13 font="" y=""><span lang="AR-SA"></span></13></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: lime; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: lime;"><span style="mso-spacerun: yes;"> </span>{</span></span><span style="color: red; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span>z = <span style="background: yellow; mso-highlight: yellow;">x</span> * <span style="background: lime; mso-highlight: lime;">y</span>;<span style="mso-tab-count: 2;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="mso-fareast-font-family: MS Mincho;">cout<<</span><span style="background: yellow; mso-highlight: yellow;">x</span><span style="mso-fareast-font-family: MS Mincho;"><<<span lang="en-us">"</span>*<span lang="en-us">"</span><<</span><span style="background: lime; mso-highlight: lime;">y</span><span style="mso-fareast-font-family: MS Mincho;"><<<span lang="en-us">"</span>=<span lang="en-us">"</span><<z endl="" span="" style="mso-spacerun: yes;"> </z></span></span></div>
<span style="mso-spacerun: yes;"><span style="mso-fareast-font-family: MS Mincho;"> </span><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span><div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span><span style="background: lime; mso-highlight: lime;">}</span> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وبداخل بلوك الاوامر للحلقة الثانية وضعنا عدة اوامر لتفى بالغرض الذي من اجله تم عمل البرنامج وهو جدول الضرب – عبارة عن معادلة لحساب حاصل ضرب المتغيرين </span><span style="mso-fareast-font-family: MS Mincho;">x </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';">و </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">y</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ويوضع الناتج في المتغير </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">z </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>كما يلي </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">z = <span style="background: yellow; mso-highlight: yellow;">x</span> * <span style="background: lime; mso-highlight: lime;">y</span>;<span style="mso-tab-count: 1;"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">بالطبع تلى ذلك صيغة لطبع مخرجات البرنامج والا ما الفائدة منه اذا لم ارى نتيجة عملى وهذه الصيغة سأشرح لك فيما بعد وفي هذا الدرس لماذا اخترت هذه الصيغة بالتحديد فهو ليس موضوعنا الآن ودعني اشرح لك الاهم من ذلك وهو ميكانيكية عمل الحلقتين</span><span dir="ltr" style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-ansi-font-weight: normal; mso-fareast-font-family: MS Mincho;"><span style="color: black; font-family: Tahoma; font-size: x-small;">·</span><span style="color: black; font-family: Arial; font-size: x-small;"><span style="font-family: Tahoma; font-style: normal; font-variant: normal;"> </span></span></span><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';">يبدء البرنامج بالدخول الى الحلقه الاولى ويخصص للمتغير اكس القيمة واحد حيث انها قيمة عداد البداية ثم يدخل الى داخل اقواس بلوكه لتنفيذ ما بداخله فيجد حلقه اخرى فيبدء بتنفيذها وطلبت الحلقة ان يكون متغيرها واي يبدء بالقيمة واحد وينتهي بالقيمة 12 ثم تدخل الحلقة الثانية الى بلوك اوامرها فتجد معادلة يضرب فيها قيمة اكس التي هي واحد الآن وتتغير قيمة واي فيها ثم طبع النتائج وتظل الحلقة الداخلية تنفذ بتغير واي مع ثبات اكس بالطبع وتكون النتائج كما يلى </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">1</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">1</span> <span style="color: black;">= 1 </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">1</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">2</span> <span style="color: black;">= 2 </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">1</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">3</span> <span style="color: black;">= 3 </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">1</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">12</span> <span style="color: black;">= 12 </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وعند وصول نهاية عداد الحلقة الداخلية الى 12 وهو نهاية الحلقة ينتهي تنفيذ الحلقة فيستمر البرنامج فيجد امامه قوس نهاية الحلقه الخارجية ذو الخلفية الصفراء فيعود الى الحلقة الخارجيه حيث تزيد قيمة اكس بمقدار واحد وتصبح قيمتها = 2 فيدخل الى بلوك اوامره كما سبق فيجد حلقة اخرى تبدء من واحد وتنتهي ب 12 وبداخلها معادلة وامر طبع فيكون التنفيذ كما يلي</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">2</span><span style="mso-fareast-font-family: MS Mincho;"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">1</span> <span style="color: black;">= 2</span><span lang="AR-SA"> </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">2</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">2</span> <span style="color: black;">= 4 </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">2</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">3</span> <span style="color: black;">= 6</span> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">2</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">12</span> <span style="color: black;">= 24</span> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وهكذا يستمر التنفيذ الى ان تصل الحلقة الخارجية الى نهايتها بالرقم 12 واثناء ذلك تنفذ الحلقة الداخلية من بدايتها الى نهايتها اي من 1 الى 12 وتطبق المعادلة وامر الطبع ليكون اخر تنفيذ كما يلي</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">12</span><span style="mso-fareast-font-family: MS Mincho;"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">1</span> <span style="color: black;">= 12</span><span lang="AR-SA"> </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">12</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">2</span> <span style="color: black;">= 24 </span></span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">12</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">3</span> <span style="color: black;">= 36</span> </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">. </span></span></div>
<div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">12</span><span style="mso-fareast-font-family: 'MS Mincho';"> <span style="color: black;">*</span> <span style="background: lime; mso-highlight: lime;">12</span> <span style="color: black;">= 144</span> </span></span></div>
<div align="right" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">شرح صياغة امر الطبع بالصورة التالية</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">cout</span><span style="color: blue; mso-fareast-font-family: MS Mincho;"><span style="background: yellow; mso-highlight: yellow;"><<x span=""><span lang="en-us" style="background: #00ff00; mso-highlight: yellow;">"</span><span style="background: lime; mso-highlight: lime;">*</span><span lang="en-us" style="background: #00ff00; mso-highlight: yellow;">"</span><span style="background: yellow; mso-highlight: yellow;"><<y span=""><span style="background: lime; mso-highlight: lime;"><span lang="en-us">"</span>=</span><span lang="en-us" style="background: #00ff00; mso-highlight: yellow;">"</span><span style="background: yellow; mso-highlight: yellow;"><<z span=""></z></span><span style="mso-fareast-font-family: MS Mincho;">endl;</span></y></span></x></span></span></span><span style="font-family: Tahoma;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"> </span></span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: black; font-family: Tahoma; font-size: x-small;">مابداخل علامات الاقتباس دائما يطبع كما هو وهو مميز اعلاه با</span></span><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لخلفية الخضراء وكل مايوضع داخل علامة الاقتباس يطبع نصه كما هو اما ماهو خارج علامات الاقتباس بين ازواج الاقواس <span style="background: yellow; mso-highlight: yellow;">>>متغير>></span> فيطبع قيمة المتغير وليس اسم المتغير فمثلا <span style="mso-fareast-font-family: MS Mincho;">x لاتطبع x ولكن تطبع قيمتها فمثلا 1 – 2 – 3 ----- 12 حيث انها متغيرات وتميز اعلاه بالخلفية الصفراء وذلك للحصول على شكل مقبول يوضح العملية المطلوبة لتظهر النتائج بالصورة</span></span></span><span lang="AR-SA" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">12</span><span style="mso-fareast-font-family: MS Mincho;"> <span style="background: lime; mso-highlight: lime;">*</span> <span style="background: yellow; mso-highlight: yellow;">12</span> <span style="background: lime; mso-highlight: lime;">=</span> <span style="background: yellow; mso-highlight: yellow;">144</span><span lang="AR-SA"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; mso-border-bottom-alt: solid windowtext .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">والآن الى النوع الثاني من الحلقات وهو ابسط من السابق ولكن السابق اكثر استخداما واكثر قوة </span></span></div>
</div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: blue; background-position: 0% 50%; background-repeat: repeat; color: yellow; mso-fareast-font-family: MS Mincho; mso-highlight: blue;">While</span><span lang="AR-SA" style="color: yellow; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><b><span style="font-family: Tahoma; font-size: x-small;">#include <iostream .h=""><span style="mso-spacerun: yes;"> </span></iostream></span></b><span lang="AR-SA"></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="font-weight: 700; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><b><span style="font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 2;"> </span><span style="mso-spacerun: yes;"> </span></span></b></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><b><span style="font-family: Tahoma; font-size: x-small;">{ </span></b></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>int x=0;<span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 2;"> </span></span></span><span style="font-family: Tahoma;"><span style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"><span style="mso-spacerun: yes;"> </span> </span></span></span></b></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>while(x<100 span="" style="mso-tab-count: 2;"> </100></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cout<<x endl="" span="" style="mso-tab-count: 1;"> </x></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><span style="background: yellow; mso-highlight: yellow;">x++;</span><span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 2;"> </span><span style="mso-spacerun: yes;"> </span> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>} <span style="mso-tab-count: 3;"> </span></span><span style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="mso-fareast-font-family: MS Mincho;">return 0; </span></span></b></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="font-weight: 700; mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: black; font-family: Tahoma; font-size: x-small;">سوف اشرحها لك في سطور قليلة لبساطتها الاوامر باللون الازرق سبق شرحها اما الحلقة موضع النقاش فهي باللون الاحمر وصيغتها </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">while(x<100 span=""><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></100></span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: black; font-family: Tahoma; font-size: x-small;">وبعد الاعلان عن المتغير اكس خلاصة شرح الامر السابق (أعد تنفيذ ما بداخل البلوك طالما اكس او المتغير اقل من 100 ثم اقواس بلوك تضع ماشئت بداخله من اوامر وقوس نهاية البلوك ويزيد معنا فقط عداد للمتغير ليزيده بالمقدار الذي تريده ويوضع في اي مكان داخل الحلقة او حسب افكارك عن البرنامج المهم لاتنساه والا سوف يدور البرنامج داخل الحلقة الى الابد حيث ان شرط نهايتها ان تزيد اكس عن 100 وطالما لم تضع عداد زياده للمتغير فلن يتحقق الشرط وبالتالى لن تنتهي الحلقه الى الابد ويظل يعمل الكومبيوتر بلا نهاية للبرنامج </span><span style="background: yellow; mso-highlight: yellow;"><span style="color: navy; font-family: Tahoma; font-size: x-small;">ويميز العداد</span><span style="color: black; font-family: Tahoma; font-size: x-small;"> </span><span style="color: navy; font-family: Tahoma; font-size: x-small;">بالخلفية الصفراء</span></span><span style="font-family: Tahoma; font-size: x-small;"> </span><span style="color: black; font-family: Tahoma; font-size: x-small;">واليك جدول صياغة الامر الذي تعودنا عليه. </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></b></div>
<div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الصيغة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">التفسير</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">while </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">امر</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> اللغة لعملية التكرار</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">( </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوس مفتوح يوضح بداخله <span style="color: blue;">بارامترات</span> <span style="color: red;">الامر</span></span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">X<100 span=""></100></span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">المتغير مع شرط لنهاية الحلقة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">) </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوس نهاية <span style="color: blue;">بارامترات</span> <span style="color: red;">الامر</span> – لاتضع بعده فاصلة منقوطة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوس بداية بلوك الاوامر المطلوب تكرارها</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td colspan="2" dir="ltr" style="background: yellow; border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 437.2pt;" width="583"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">بداخل اقواس البلوك توضع الاوامر المطلوب تكرارها</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-bottom: 0.5pt solid windowtext; border-left: 0.5pt solid windowtext; border-right: 0.5pt solid windowtext; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">x++; </span></span></span></div>
</span></td><td style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-bottom: 0.5pt solid windowtext; border-left: medium none; border-right: 0.5pt solid windowtext; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">ولا تنسى عداد الزياده او النقصان ليتحقق الشرط لانهاء تنفيذ الحلقة</span><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوس نهاية بلوك الاوامر المطلوب تكرارها</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></b></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></b></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لقد ذكرت لك كلمة عداد الزيادة او النقصان نعم يمكن ان يتناقص العداد اذا كانت صيغة البرنامج كما يلي وذلك لطبع قيمة المتغير تناقصيا من 99 الى صفر بعد ان كان في البرنامج السابق تصاعديا من صفر الى 99 ويكون التعديل كما يلي </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><b><span style="font-family: Tahoma; font-size: x-small;">#include <iostream .h=""><span style="mso-spacerun: yes;"> </span></iostream></span></b><span lang="AR-SA"></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="font-weight: 700; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><b><span style="font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 2;"> </span><span style="mso-spacerun: yes;"> </span></span></b></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><b><span style="font-family: Tahoma; font-size: x-small;">{ </span></b></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>int x=99;<span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 2;"> </span></span></span><span style="font-family: Tahoma;"><span style="mso-fareast-font-family: 'MS Mincho';"><span style="font-size: x-small;"><span style="mso-spacerun: yes;"> </span> </span></span></span></b></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><b><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>while(x>0)<span style="mso-tab-count: 2;"> </span></span></b></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; font-weight: 700; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><b><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cout<<x endl="" span="" style="mso-tab-count: 1;"> </x></span></b></span></div>
</span><div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><b><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><span style="background: yellow; mso-highlight: yellow;">x--;</span><span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></b></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; font-weight: 700; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 2;"> </span><span style="mso-spacerun: yes;"> </span> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>} <span style="mso-tab-count: 3;"> </span></span><span style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span> </span></span></b></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<b><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="mso-fareast-font-family: MS Mincho;">return 0; </span></span></b></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="font-weight: 700; mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="font-weight: 700; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: black;">بدء هنا تخصيص المتغير مع الاعلان بالقيمة 99 ثم شرط التكرار ان يكون متى كانت قيمة المتغير اكبر من الصفر ثم عداد تناقصي يظل يطرح واحد من القيمة الى ان يصل الى الصفر ثم يطرح من الصفر 1 فتصبح قيمته –1 وبالتالي لايتحقق الشرط حيث ان قيمة –1 ليست اكبر من الصفر وتنتهي الحلقه</span> <span style="color: black;">كما نريد لاحظ </span><span style="background: yellow; mso-highlight: yellow;">العداد التناقصي بالخلفية الصفراء</span> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="font-weight: 700; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="font-weight: 700; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: white; font-family: Tahoma; font-size: x-small;"><a href="http://mohandes.net/services.html"> </a></span></span><b><span style="font-family: Tahoma; font-size: x-small;"> </span></b></div>
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" style="width: 100%px;"><tbody>
<tr><td><span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 600px;"> <tbody>
<tr><td><span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="height: 1px; width: 100%px;"> <tbody></tbody></table>
</td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 600px;"> <tbody>
<tr><td height="15" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"><span style="font-family: Tahoma;"><a href="https://www.blogger.com/null">عودة</a></span></span></div>
</td></tr>
<tr><td height="15" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" id="AutoNumber1" style="border-collapse: collapse; font-family: Arial; font-size: 10px; height: 18px; width: 760px;"> <tbody>
<tr><td height="18" width="18"><span style="font-family: Arial;"> </span></td><td bgcolor="#4a6bb5" height="18" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial;"> </span></td><td height="18" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;" width="18"><span style="font-family: Arial;"><img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/3_files/btrt.gif" width="18" /></span></td></tr>
</tbody></table>
</td></tr>
<tr><td style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 760px;"> <tbody>
<tr><td align="center" height="10" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><br /></td></tr>
<tr><td align="center" height="20" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial;"> </span></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<tr><td align="center" height="20" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"></td></tr>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br /></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Arial;"> </span><br />
<table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 600px;"> <tbody>
<tr><td align="center"><span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" dir="rtl" style="border-collapse: collapse; width: 760px;"> <tbody>
<tr><td align="center"><span style="font-family: Arial;"> </span></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="2" cellspacing="0" style="height: 44px; width: 760px;"> <tbody>
<tr><td height="40" valign="top" width="600"><span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; height: 18px; width: 600px;"> <tbody>
<tr><td bgcolor="#4a6bb5" width="18"><span style="font-family: Arial;"> <div align="center">
<img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/4_files/tplf.gif" width="18" /></div>
</span></td></tr>
<tr></tr>
</tbody></table>
<span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 590px;"> <tbody>
<tr><td align="center" colspan="5" valign="top" width="590"><span style="font-family: Arial;"> <div style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Arial; font-size: large;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">تعلم سي بلس بلس</span><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Arial; font-size: large;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الدرس الرابع </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: lime; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<u><span style="color: red; font-family: Arial; font-size: medium;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الدوال </span></span></u></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">مساء الخير </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">موضوع اليوم عن الدوال او الروتينات الفرعية وهي اجزاء من البرنامج مثل الدالة الرئيسية تقوم بعمل مهمة معينة تتكرر في برنامجك او تستخدمها في برامج اخرى او حتى اذا كانت لا تتكرر من فوائدها </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-ansi-font-weight: normal;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">تقسيم البرنامج الى اجزاء صغيرة تستدعى وقت اللزوم </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-ansi-font-weight: normal;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">عدم ازدحام الدالة الرئيسية للبرنامج بأوامر كثيرة </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-ansi-font-weight: normal;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">تقسيم البرنامج الى اجزاء يمكن اختبارها منفصلة لسرعة تحديد الخلل بالبرنامج </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-ansi-font-weight: normal;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">توفير المجهود والوقت والتفكير بعمل مكتبة خاصة بك تعيد استخدام الدوال التي استخدمتها في برنامج وذلك في برنامج آخر عند اللزوم </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-ansi-font-weight: normal;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">تقسيم العمل بين المبرمجين عن العمل في مشروع جماعي لانتاج برنامج كبير </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; mso-list: l0 level1 lfo2; tab-stops: list 36.0pt; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-ansi-font-weight: normal;"><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">·<span style="font-style: normal; font-variant: normal;"> </span></span></span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">تبادل الخبرات بين مطوري البرامج بنشر اجزاء يستخدمها الآخرون في برامجهم </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لتطبيق ذلك دعنا نحضر البرنامج الذي تناولناه في <a href="http://mohandes.net/less3.html">الدرس الثالث</a> لاعطائه مزيدا من القوة والتطوير باستخدام الدوال </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: cyan; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">#include <iostream .h=""><span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 2;"> </span></iostream></span><span lang="AR-SA"></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>int x , y , z;<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></span><span style="background: yellow; mso-highlight: yellow;"><span style="font-family: Tahoma; font-size: x-small;">for(x=1;x<13 font="" x=""></13></span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="mso-spacerun: yes;"> </span>{</span></span><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 3;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span></span><span style="background: lime; mso-highlight: lime;"><span style="font-family: Tahoma; font-size: x-small;">for(y=1;y<13 font="" y=""></13></span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: lime; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: lime;"><span style="mso-spacerun: yes;"> </span>{</span></span><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span>z = <span style="background: yellow; mso-highlight: yellow;">x</span> * <span style="background: lime; mso-highlight: lime;">y</span>;<span style="mso-tab-count: 2;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="mso-fareast-font-family: MS Mincho;">cout<<</span><span style="background: yellow; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">x</span><span style="mso-fareast-font-family: MS Mincho;"><<”*”<<</span><span style="background: lime; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: lime;">y</span><span style="mso-fareast-font-family: MS Mincho;"><<”=”<<z endl="" span=""><span style="mso-spacerun: yes;"><span style="mso-fareast-font-family: MS Mincho;"> </span><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></z></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span><span style="background: lime; mso-highlight: lime;">}</span> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><span style="background: yellow; mso-highlight: yellow;">}</span> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">return 0;<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لوكنت قد تذكرت الآن فان البرنامج كان يقوم بعمل جدول الضرب من جدول واحد الى جدول 12 واحتوى كامل التعليمات داخل الدالة الرئيسية دعنا نستخدم الدوال ولنسمي هذه الدالة </span><span style="mso-fareast-font-family: MS Mincho;">DoiT </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">#include <iostream .h=""> </iostream></span><span lang="AR-SA"></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">void DoiT (void); </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 2;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">DoiT (); </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">// This is the new function </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">void DoiT (void) </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>int x , y , z;<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>for(x=1;x<13 font="" x=""></13></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-tab-count: 3;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>for(y=1;y<13 font="" y=""></13></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span>z = x * y;<span style="mso-tab-count: 2;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cout<<x endl="" span="" style="mso-spacerun: yes;" y="" z=""> </x></span></span></div>
</span></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
</center>
</div>
</div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>} </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>} </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>return ;<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;">مايخص الدالة الجديدة مكتوب باللون الاحمر فقبل الدالة الرئيسة <span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">main تم الاعلان عن نموذج الدالة او ما يسمى prototype بهذا الشكل </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">void DoiT (void);<span lang="AR-SA"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: black; font-family: Tahoma; font-size: x-small;">وفيه نخبر الكومبايلر بشكل وما ستكون عليه الدالة كما يلي </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center">
<span style="font-family: Arial;"> </span><table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الصيغة</span><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">التفسير</span><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">void </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">ماهي القيمة التي سوف تعيدها الدالة للدالة التي استدعيت منها وذلك بالامر </span><span style="color: red; mso-fareast-font-family: MS Mincho;">return </span><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">هنا استخدمنا </span><span style="color: red; mso-fareast-font-family: MS Mincho;">void </span><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>بمعنى لاشئ وبالتالي علينا استبدال </span><span style="color: red; mso-fareast-font-family: MS Mincho;">return 0 </span><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">التي استخدمناها في الدرس الثالث الى الامر </span><span style="color: red; mso-fareast-font-family: MS Mincho;">return </span><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>فقط حيث اننا اعلنا ان الدالة غير مطلوب منها اعادة شئ</span><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">DoiT </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">اسم تختاره لدالتك بحيث يكون معبرا قليلا عما ستفعل انا هنا لم اختر اسم معبر </span></span><span style="mso-fareast-font-family: MS Mincho;"></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">( </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">قوس لاحتواء البارامترات التي ستمرر للدالة</span><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">void </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">البارامترات التي ستمرر للدالة وهنا اخترنا </span><span style="color: blue; mso-fareast-font-family: MS Mincho;">void </span><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">بمعنى لن نمرر لها شئ</span><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial;"> <div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">); </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial;"> <div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">قوس اغلاق لمجموعة البارامترات يليها فاصلة منقوطة</span><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial;"><div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">والآن الى باقي سطور البرنامج لاستكمال الشرح </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span><span lang="AR-SA"></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">DoiT (); </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">كما سبق ولابد ان نعلن عن الدالة الرئيسية للبرنامج وهو الزام ثم داخل بلوك الدالة الرئيسية قمنا بالنداء على الدالة للتنفيذ وذلك بكتابة اسمها ثم قوسين لايوجد بينهما شئ هل تتذكر لماذا لان البارامترات المطلوب تمريرها للدالة لم تعطى اي </span><span style="mso-fareast-font-family: MS Mincho;">void </span><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>ولكن بالطبع لاتكتب </span><span style="mso-fareast-font-family: MS Mincho;">void </span><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>ولكن يكون ذلك في الاعلان عن الدالة فقط وهو على الصورة التالية </span></span><span style="mso-fareast-font-family: MS Mincho;"></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">DoiT<span lang="en-us">();</span></span><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">تلى ذلك قوس نهاية البلوك للدالة الرئيسة ثم جسم او هيكل الدالة نفسها ويبدء بنفس الاعلان عن اسم الدالة او البروتوتايب ولكن بدون فاصلة منقوطة في النهاية وكما تلاحظ وسبق ان قلنا ان الفاصلة المنقوطة لاتأتي بعد </span><span style="mso-fareast-font-family: MS Mincho;">main()</span><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> وبنفس الطريقة لاتأتي في مقدمة بلوك الدالة </span></span></div>
<center>
</center>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">void DoiT (void)<span lang="AR-SA"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">{<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ضع اوامر الدالة هنا</span><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: red; font-family: Tahoma; font-size: x-small;">}</span></span><span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<center>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ثم قوس بداية بلوك الدالة ثم مابداخلها من اوامر وقوس النهاية ودعنا ننتهز فرصة الدوال لاعطاءمزيد من التحسينات على البرنامج حيث ان البرنامج ينتج فقط جدول الضرب من جدول 1 الى جدول 12 فلماذا لانجعلها دالة عامة تنتج مايحلو لنا من جداول ضرب من المؤكد انك تتفق معي في ذلك وبذلك نستفيد من قوة الدوال وتصبح دالة عامة غير موجهه لمهمة ثابته فنحن نريد ان نحدد نحن بداية الجداول ونهايتها فتارة تطبع من جدول 7 الى جدول 20 وتارة تطبع من جدول 17 الى 40 وهكذا اليس هذا افضل سوف نمرر للدالة قيمة البداية وقيمة النهاية مع اجراء التعديلات اللازمة لذلك. </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">#include <iostream .h=""> </iostream></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">void DoiT (<span style="background: yellow; mso-highlight: yellow;">int Start , int End</span>); </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"><span style="color: cyan; font-family: Tahoma; font-size: x-small;"> </span><span style="font-family: Tahoma; font-size: x-small;"> </span></span><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 2;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">int Start , End;</span><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">cout<<"Please input start value ?: "; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="mso-spacerun: yes;"> </span>cin>>Start; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">cout<<"Please input end<span style="mso-spacerun: yes;"> </span>value ?: "; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="mso-spacerun: yes;"> </span>cin>>End;</span><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">DoiT (<span style="background: yellow; mso-highlight: yellow;">Start , End</span>); </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">// This is the new function </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">void DoiT (<span style="background: yellow; mso-highlight: yellow;">int Start , int End</span>) </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>int x , y , z;<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>for(x=<span style="background: yellow; mso-highlight: yellow;">Start</span>;x<<span style="background: yellow; mso-highlight: yellow;">End+1</span>;x++) </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-tab-count: 3;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>for(y=<span style="background: yellow; mso-highlight: yellow;">Start</span>;y<<span style="background: yellow; mso-highlight: yellow;">End+1</span>;y++) </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span>z = x * y;<span style="mso-tab-count: 2;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cout<<x endl="" span="" style="mso-spacerun: yes;" y="" z=""> </x></span></span></div>
</center>
</span><div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>} </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>} </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>return ;<span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لتسهيل الامر عليك وضعت لك لون اصفر على التعديلات التي اجريتها للوصول الى الهدف المنشود لقد وضعنا في اقواس البروتوتايب اعلان عن تمرير متغيرين صحيحين الى الدالة </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">void DoiT (<span style="background: yellow; mso-highlight: yellow;">int Start , int End</span>);</span><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ثم داخل الدالة الرئيسية اعلنا عن استخدام متغيرين جديدين من نوع الاعداد الصحيحة هما </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span dir="ltr" style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">int Start , End;</span><span dir="ltr" lang="AR-SA" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">تلى ذلك امر بطبع رسالة تطلب منك ادخال قيمة بداية الجدول وبعده امر بعملية الادخال نفسها ليعرف البرنامج القيمة المبدئية لبداية الجدول </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">cout<<"Please input start value ?: ";<span lang="AR-SA"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="mso-spacerun: yes;"> </span>cin>>Start; </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">مثلهما تماما للمتغير الثاني ليعرف البرنامج قيمة النهاية والتي كانت ثابتة سابقا على القيمة 12 ونحن نريد برنامج اكثر مرونة ومطوع لكل الحالات </span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">cout<<"Please input end<span style="mso-spacerun: yes;"> </span>value ?: ";<span lang="AR-SA"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="mso-spacerun: yes;"> </span>cin>>End;</span><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">بعد ان ادخلت قيمة البداية والنهاية فكما ذكرنا تم تعديل الدالة لتمرير متغيرين لها يتغيران مع كل ادخال والآن لننادي الدالة ممرين لها القيمتين الذين ادخلهما مستخدم البرنامج</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">DoiT (<span style="background: yellow; mso-highlight: yellow;">Start , End</span>);<span lang="AR-SA"> </span></span></span></div>
<div align="left" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: black;">ثم اجرينا تعديل على اسم الدالة نفسها ليوافق البروتوتايب او اعلان الدالة الجديد في مقدمة البرنامج طبعا بدون فاصلة منقوطة </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">// This is the new function<span lang="AR-SA"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">void DoiT (<span style="background: yellow; mso-highlight: yellow;">int Start , int End</span>) </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>{<span style="mso-spacerun: yes;"> </span></span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">ثم تلى ذلك وضع القيمة </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">Start </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>الممررة للدالة كبداية عداد للحلقتين بدلا من القيمة 1 وكذلك المتغير </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">End </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>الممرر الى الدالة كنهاية لعداد الحلقتين بدلا من القيمة 13 في مثال الدرس الماضي</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">ويجب دائما ان تفكر في احتمالات خطأ مدخل البيانات فمثلا ماذا لو أخطأ وادخل قيمة البداية اكبر من قيمة النهاية بالطبع سيحدث خطأ بالبرنامج وسيحدث نفس الخطأ اذا ادخلهم كقيمتين متساويتين وعليه يجب وضع شرط لذلك كما سيلي توضيحه كتحسين للبرنامج </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">#include <iostream .h=""> </iostream></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">void DoiT (<span style="background: yellow; mso-highlight: yellow;">int Start , int End</span>); </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="color: blue; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 2;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">int Start , End;</span><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: red; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: red;">A1:</span><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">cout<<"Please input start value ?: "; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="mso-spacerun: yes;"> </span>cin>>Start; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">cout<<"Please input end<span style="mso-spacerun: yes;"> </span>value ?: "; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="mso-spacerun: yes;"> </span>cin>>End;</span><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: red; background-position: 0% 50%; background-repeat: repeat; color: blue; mso-fareast-font-family: MS Mincho; mso-highlight: red;">if (Start >= End) goto A1;</span><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">DoiT (<span style="background: yellow; mso-highlight: yellow;">Start , End</span>); </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">}<span style="color: cyan;"> </span></span></span></div>
<div style="border-bottom: windowtext 0.75pt solid; border-left: medium none; border-right: medium none; border-top: medium none; padding-bottom: 1pt; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm;">
<div dir="rtl" style="border-bottom: medium none; border-left: medium none; border-right: medium none; border-top: medium none; direction: rtl; line-height: 150%; margin: 0px; mso-border-bottom-alt: solid windowtext .75pt; mso-padding-alt: 0cm 0cm 1.0pt 0cm; padding-bottom: 0cm; padding-left: 0cm; padding-right: 0cm; padding-top: 0cm; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">لقد وضعت الاضافة الجديدة بخلفية حمراء للتوضيح وهي عبارة عن عنوان اختياري قبل عملية الادخال ثم بعد الادخال شرط انه اذا كانت قيمة البداية اكبر من اوتساوي قيمة النهاية فعليك بالذهاب الى العنوان المحدد </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">A1</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> اي اعادة الادخال ولامانع من اضافة رسالة تحذير لتوضيح فيما اخطأ مدخل البيانات</span></span><span style="font-family: Tahoma; font-size: medium;"><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"><span style="color: black; font-size: x-small;"> </span></span></span></div>
</div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-color: blue; background-position: 0% 50%; background-repeat: repeat; color: yellow; mso-fareast-font-family: MS Mincho; mso-highlight: blue;">الى مثالنا الاخير وهو دالة تعيد قيمة ويممر اليها بيانات</span><span lang="AR-SA" style="color: yellow; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">#include <iostream .h=""> </iostream></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">float Mul (float A , float B); </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">int main()<span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">float A , B , R; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">cout<<"Please input A ?: "; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>cin>>A; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">cout<<"Please input end<span style="mso-spacerun: yes;"> </span>B ?: "; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span>cin>>B; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">R = Mul (A , B); </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">cout<<r span=""></r></span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">float Mul (float A , float B) </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">{ </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">return A*B; </span></span></div>
<div align="left" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">}</span><span style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الدالة الجديدة اسميناها </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">Mul</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> وتعيد هذه الدالة قيمة عشرية وهي حاصل ضرب قيمتين عشريتين تم تمريرها اليها وكما ترى المثال بسيط ومعظم اجزائه سبق شرحها</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="right" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: black; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" style="line-height: 150%; margin: 0px; text-indent: 0px; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: white; font-family: Tahoma; font-size: x-small;"><a href="http://mohandes.net/services.html"> </a></span></span><b><span style="font-family: Tahoma; font-size: x-small;"> </span></b><span style="font-family: Tahoma; font-size: x-small;"> </span></div>
<table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" style="width: 100%px;"><tbody>
<tr><td><span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 600px;"> <tbody>
<tr><td><span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="height: 1px; width: 100%px;"> <tbody></tbody></table>
</td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<td height="40" width="0"></td><table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 600px;"><tbody>
<tr><td height="15" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><div align="center">
<br /></div>
</td></tr>
<tr><td height="15" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" id="AutoNumber1" style="border-collapse: collapse; font-family: Arial; font-size: 10px; height: 18px; width: 760px;"> <tbody>
<tr><td height="18" width="18"><span style="font-family: Arial;"> <img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/4_files/btlf.gif" width="18" /></span></td><td bgcolor="#4a6bb5" height="18" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial;"> </span></td><td height="18" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;" width="18"><span style="font-family: Arial;"><img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/4_files/btrt.gif" width="18" /></span></td></tr>
</tbody></table>
</td></tr>
<tr><td style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial;"> </span><div align="center">
<span style="font-family: Arial;"> </span><center>
<span style="font-family: Arial;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 760px;"> <tbody>
<tr><td align="center" height="10" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><br /></td></tr>
<tr><td align="center" height="20" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial;"> </span></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<div dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; text-indent: 0px; unicode-bidi: embed; word-spacing: 0px;">
<br />
<br />
<span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Arial, Helvetica;"> </span></span></span></span></span><br />
<table align="center" border="0" cellpadding="0" cellspacing="0" style="width: 600px;"> <tbody>
<tr><td align="center"><span style="font-family: Arial, Helvetica;"> </span><div align="center">
<span style="font-family: Arial, Helvetica;"> </span><center>
<span style="font-family: Arial, Helvetica;"> </span><table border="0" cellpadding="0" cellspacing="0" dir="rtl" style="border-collapse: collapse; width: 760px;"> <tbody>
<tr><td align="center"><span style="font-family: Arial, Helvetica;"> </span></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<span style="font-family: Arial, Helvetica;"> </span><div align="center">
<span style="font-family: Arial, Helvetica;"> </span><center>
<span style="font-family: Arial, Helvetica;"> </span><table border="0" cellpadding="2" cellspacing="0" style="height: 44px; width: 760px;"> <tbody>
<tr><td height="40" valign="top" width="600"><span style="font-family: Arial, Helvetica;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; height: 18px; width: 600px;"> <tbody>
<tr><td bgcolor="#4a6bb5" width="18"><span style="font-family: Arial, Helvetica;"> <div align="center">
<img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/5_files/tplf.gif" width="18" /></div>
</span></td></tr>
<tr></tr>
</tbody></table>
<span style="font-family: Arial, Helvetica;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 590px;"> <tbody>
<tr><td align="center" colspan="5" valign="top" width="590"><span style="font-family: Arial, Helvetica;"> </span><div class="Section1">
<span style="font-family: Arial, Helvetica;"> <div class="MsoPlainText" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 200%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: blue; font-family: Arial; font-size: large;"><span lang="AR-SA" style="font-weight: 700; mso-fareast-font-family: MS Mincho;">تعلم سي بلس بلس</span></span></div>
<div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 200%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="color: lime; font-family: Arial; font-size: large;"><span style="mso-fareast-font-family: MS Mincho;"></span></span></b></div>
<div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 200%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: red; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho; text-decoration: underline;">الدرس الخامس</span></span></div>
<div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 200%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<b><span style="color: lime; font-family: Arial; font-size: large;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"></span></span></b></div>
<div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 200%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: lime; font-family: Tahoma;"><span style="font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span><u><span style="font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';">حالات التبديل وأوامر القفز </span></span></u></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">مساء الخير </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قد تحتاج في برنامجك الى قائمة (او حالة تشابه ذلك) تطلب من المستخدم ادخال رقم الاختيار او الضغط على زر معين لانجاز مهمة ومما سبق دراسته يمكن وضع عدة شروط لتنفيذ دالة معينة حسب الاختيار ولكننا سنعرض اليوم امر يقوم بتسهيل مثل هذه العمليات ولندخل في الموضوع مباشرة </span></span></div>
</span><div align="right">
<span style="font-family: Arial, Helvetica;"> </span><table border="0" cellpadding="0" cellspacing="0" dir="ltr" id="AutoNumber16" style="border-collapse: collapse; width: 570%px;"> <tbody>
<tr><td dir="ltr" width="100%"><span style="font-family: Arial, Helvetica;"> <div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;"><span lang="en-us">#</span>include <span lang="en-us"><</span>iostream.h<span lang="en-us">></span></span></span></span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span dir="ltr" style="mso-fareast-font-family: MS Mincho;"><span style="color: green;"><span lang="en-us">#</span>include</span> </span><span dir="ltr" style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;"><conio .h=""></conio></span><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span><span style="mso-fareast-font-family: MS Mincho;"></span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">void Input <span style="mso-spacerun: yes;"> </span>(void); </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">void Display (void); </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">void Modify <span style="mso-spacerun: yes;"> </span>(void); </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">int main() </span></span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{<span style="mso-spacerun: yes;"> </span><span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span> </span></span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> <span dir="ltr"> </span></span><span dir="ltr">char input; </span></span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">StartMenu; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: Tahoma; font-size: x-small;">cout<<"1. Enter <span style="mso-spacerun: yes;"> </span>Data";<span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: Tahoma; font-size: x-small;">cout<<"2. Display Data";<span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: Tahoma; font-size: x-small;">cout<<"3. Modify <span style="mso-spacerun: yes;"> </span>Data";<span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-family: Tahoma; font-size: x-small;">cout<<"4. Exit";<span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;"><span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>cin>>input;<span style="mso-tab-count: 1;"> </span></span></span></span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> <span dir="ltr"> </span></span><span dir="ltr"><span style="background: yellow; mso-highlight: yellow;">switch (input)</span><span style="mso-tab-count: 1;"> </span></span></span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span dir="ltr" style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">{</span><span dir="ltr" style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span><span style="background: yellow; mso-highlight: yellow;">case 1:</span></span><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span><span style="font-family: Tahoma; font-size: medium;"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-size: x-small;">Input(); </span></span></span><span style="color: red; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><span style="background: yellow; mso-highlight: yellow;">break;</span><span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">case 2:</span></span><span style="font-family: Tahoma; font-size: medium;"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span><span style="font-family: Tahoma;"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-size: x-small;">Display();</span></span></span><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> <span style="mso-spacerun: yes;"> </span></span><span style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">break;</span></span></span><span style="color: blue; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">case 3:</span><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;">Modify(); </span></span><span style="mso-spacerun: yes;"> </span><span style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">break;</span></span><span style="color: blue; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">case 4:</span></span><span style="font-family: Tahoma; font-size: medium;"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span><span style="font-family: Tahoma;"><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green; font-size: x-small;">return 0;<span style="mso-spacerun: yes;"> </span></span></span></span><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span><span style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">break;</span></span></span><span style="color: blue; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">default:</span><span style="color: red; mso-fareast-font-family: 'MS Mincho';"> <span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span> </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;"><span style="font-family: Tahoma; font-size: x-small;">cout<<"Error, bad input, quitting";<span style="mso-tab-count: 1;"> </span></span><span lang="AR-SA"></span></span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span><span style="mso-fareast-font-family: MS Mincho;">goto StartMenu; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">}</span><span style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="mso-fareast-font-family: MS Mincho;"><span style="color: green;">return 0; </span></span></span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">}</span><span lang="AR-SA" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" dir="ltr" style="direction: rtl; line-height: 100%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">void Input (void) </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">//This the input function </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">void Display (void) </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">//This the display function </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">void Modify (void) </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">{ </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">//This the modify function </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">; </span></span></div>
<div align="left" dir="ltr" style="line-height: 100%; margin: 0px; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">} </span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial, Helvetica;"><div align="left" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الاوامر ذات اللون الازرق سبق شرحها اما الاوامر والتعليمات ذات الخلفية الصفراء فهي موضوعنا اليوم – بدء البرنامج بأمر من اوامر المعالج المبدئي وذلك بضم الملف </span></span><span dir="ltr" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"> </span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="background-attachment: scroll; background-color: yellow; background-position: 0% 50%; background-repeat: repeat; color: red; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><conio .h=""></conio></span><span style="color: red; mso-fareast-font-family: 'MS Mincho';"> <span lang="AR-SA">وهو لازم للامر </span>switch</span><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';"> موضع دراستنا اليوم </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">تلى ذلك تعريف لمتغير </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">input </span></span><span lang="AR-SA" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span>ثم رسائل طبع على الشاشة تخبر مستخدم البرنامج بقائمة البرنامج والازرار التي ينبغي ان يضغطها لتحقيق عنصر القائمة الموجود ثم يتوقف ليطلب ادخال قيمة الاختيار ما بين الارقام من 1 الى 4 ولندخل الآن الى الامر </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-spacerun: yes;"> </span><span style="background: yellow; mso-highlight: yellow;">switch (input)</span><span style="mso-tab-count: 1;"> </span></span></span></span></div>
<div align="left" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span dir="ltr" style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">{</span><span dir="ltr" style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: red; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span><span style="mso-spacerun: yes;"> </span></span></span></div>
<div align="left" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div align="left" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="color: blue; mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-tab-count: 1;"> </span></span></span></div>
<div align="left" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho; mso-spacerun: yes;"> </span><span style="background: yellow; color: red; mso-fareast-font-family: 'MS Mincho'; mso-highlight: yellow;">}</span><span style="color: red; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div align="left" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="font-family: Tahoma; font-size: x-small;">وتتضح صيغته كما تعودنا من الجدول التالي </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span><div align="center">
<span style="font-family: Arial, Helvetica;"> </span><table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الصيغة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">التفسير</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">switch </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">هو الامر الذي ندرسه الان ومعناه اختبار ما بداخل القوسين </span></span><span dir="ltr" style="font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"> </span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">( </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">قوس مفتوح لاحتواء متغير</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">input </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">متغير سبق الاعلان عنه وادخل من المستخدم او تم حسابه حسب فكرة البرنامج</span><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">) </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">اغلاق القوس الذي يحتوي المتغير المطلوب اختباره</span><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">{ </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">قوس بداية البلوك </span></span></div>
</span></td></tr>
<tr><td colspan="2" dir="ltr" style="background: yellow; border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 437.2pt;" width="583"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">هنا توضع الاوامر بالصيغة التي سيلي شرحها</span><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">} </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">قوس نهاية البلوك – لاتنساه من فضلك</span><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial, Helvetica;"><div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">وبداخل بلوك الامر </span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';">switch </span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"><span style="mso-spacerun: yes;"> </span>توضع الاوامر بالصيغة التاليه </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span><div align="center">
<span style="font-family: Arial, Helvetica;"> </span><table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الصيغة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">التفسير</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">case </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">الامر التابع للامر الرئيسي </span><span dir="ltr" style="color: red; mso-fareast-font-family: 'MS Mincho';">switch</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">1 </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">حالة الادخال المطلوب دراستها كأن يكون الادخال 1 أو 2 وهكذا او حسب نوع المدخل وفكرة البرنامج </span></span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">: </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">نقطتين تلى قيمة المتغير للتنفيذ في حالة تطابقها مع الادخال او الحسابات </span></span></div>
</span></td></tr>
<tr><td colspan="2" dir="ltr" style="background: yellow; border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 437.2pt;" width="583"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">ضع هنا مايحلو لك من معادلات او استدعاء لدالة او اوامر حسب فكرة البرنامج وقد وضعت انا استدعاء لدالة </span></span><span dir="ltr" style="color: blue; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"> </span></div>
</span></td></tr>
<tr><td dir="ltr" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">break; </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">انتهاء الاوامر ليعرف نهاية الحالة</span><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial, Helvetica;"><div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: white; font-family: Tahoma; font-size: x-small;">ت</span><span style="font-family: Tahoma; font-size: x-small;">كرر الاوامر السابقة لجميع الحالات المطلوب اختيارها حتى نصل الى جزئية هامة وهي ماذا يجب على البرنامج ان ينفذ اذا كان الادخال لايتطابق مع كل الحالات السابقة فالبرنامج طلب ادخال اي رقم من 1 الى 4 فماذا لو ادخل المستخدم غير ذلك لابد ان يكون للبرنامج قرار في هذه الحالة وعليك اضافة الحالة الخاصة التالية قبل قوس اغلاق بلوك </span></span><span style="font-family: Tahoma; font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;">switch</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> بالصيغة التالية </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span> </span></span></div>
</span><div align="center">
<span style="font-family: Arial, Helvetica;"> </span><table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الصيغة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">التفسير</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">default </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">الامر التابع للامر الرئيسي </span><span dir="ltr" style="color: red; mso-fareast-font-family: 'MS Mincho';">switch </span><span lang="AR-SA" style="color: red; mso-fareast-font-family: 'MS Mincho';">للحالة الخاصة بعدم تطابق الادخال مع الحالات التي سبق دراستها</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">: </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">نقطتين تلى الامر السابق </span></span></div>
</span></td></tr>
<tr><td colspan="2" style="background: yellow; border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 437.2pt;" width="583"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">ضع هنا مايحلو لك من معادلات او استدعاء لدالة او اوامر حسب فكرة البرنامج وقد وضعت انا امر بطبع رسالة خطأ وامر آخر بالقفز لبداية البرنامج لاعادة العملية لان الادخال خطأ </span></span><span dir="ltr" style="color: blue; font-size: 12pt; mso-fareast-font-family: 'MS Mincho';"> </span></div>
</span></td></tr>
<tr><td style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 78.05pt;" width="104"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: blue; mso-fareast-font-family: MS Mincho;">break; </span></span></span></div>
</span></td><td style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 359.15pt;" width="479"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">انتهاء الاوامر ليعرف نهاية الحالة وهو اخياري هنا لعدم وجود اوامر بعده بل يوجد قوس نهاية البلوك </span><span dir="ltr" style="color: blue; mso-fareast-font-family: 'MS Mincho';">switch <span style="mso-spacerun: yes;"> </span><span lang="AR-SA"> </span></span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial, Helvetica;"><div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">ملاحظة هامة: </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">لم نتعرض لامر القفز goto في درس منفصل لبساطته ولكن سنشرحه هنا بسرعة هذا الامر عبارة عن الامر نفسه يليه عنوان لايهم اين يكون هذا العنوان ولكن كل مايهم عدم تكرار نفس العنوان بنفس الاسم في نفس الدالة ولامانع من تكرار او استخدام نفس الاسم ولكن في دوال اخرى حيث تعمل الدوال بصفة منفصلة وانا اخترت العنوان StartMenu </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: justify; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: green; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">يليه نقتطين ولامانع ان تختار ما يحلو لك من اسماء شرط عدم تكرارها كما سبق وذكرنا وهذه هي صيغة كتابة الامر</span></span><span style="color: yellow; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: green; mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="mso-spacerun: yes;"> </span> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span><div align="center">
<span style="font-family: Arial, Helvetica;"> </span><table border="1" cellpadding="0" cellspacing="0" style="background-attachment: scroll; background-image: url('none'); background-position: 0% 0%; background-repeat: repeat; border-collapse: collapse; border: medium none; height: 164px; mso-border-alt: solid windowtext .5pt; mso-padding-alt: 0cm 5.4pt 0cm 5.4pt; mso-table-dir: rtl; width: 450px;"> <tbody>
<tr><td height="23" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 86.75pt;" width="116"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">الصيغة</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td><td height="23" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: windowtext 0.5pt solid; mso-border-left-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 350.7pt;" width="468"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;">التفسير</span><span dir="ltr" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" height="22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 86.75pt;" width="116"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">goto </span></span></span></div>
</span></td><td height="22" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 350.7pt;" width="468"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">امر القفز المطلوب دراسته</span><span lang="AR-SA" style="mso-fareast-font-family: 'MS Mincho';"> </span></span></div>
</span></td></tr>
<tr><td dir="ltr" height="19" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 86.75pt;" width="116"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">StartMenu </span></span></span></div>
</span></td><td height="19" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 350.7pt;" width="468"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">العنوان الذي اخترته </span></span></div>
</span></td></tr>
<tr><td dir="ltr" height="22" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 86.75pt;" width="116"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span dir="ltr"><span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;">; </span></span></span></div>
</span></td><td height="22" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 350.7pt;" width="468"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: red; mso-fareast-font-family: MS Mincho;">الفاصلة المنقوطة التي تلي جميع الاوامر </span></span></div>
</span></td></tr>
<tr><td dir="ltr" height="68" style="border-bottom: windowtext 0.5pt solid; border-left: windowtext 0.5pt solid; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 86.75pt;" width="116"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="ltr" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span style="color: red; mso-fareast-font-family: MS Mincho;"><span dir="ltr">StartMenu</span><span dir="ltr" lang="AR-SA">:</span><span dir="ltr"> </span></span></span></div>
</span></td><td height="68" style="border-bottom: windowtext 0.5pt solid; border-left: medium none; border-right: windowtext 0.5pt solid; border-top: medium none; mso-border-left-alt: solid windowtext .5pt; mso-border-top-alt: solid windowtext .5pt; padding-bottom: 0cm; padding-left: 5.4pt; padding-right: 5.4pt; padding-top: 0cm; width: 350.7pt;" width="468"><span style="font-family: Arial, Helvetica;"> <div align="center" class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="color: blue; mso-fareast-font-family: MS Mincho;">العنوان ويليه نقتطين لتعريف البرنامج بأنه عنوان وهو اختياري ولايهم اين يوضع بل يوضع في اي مكان حسب فكرة البرنامج والمهم ان يكون ضمن نفس الدالة </span></span></div>
</span></td></tr>
</tbody></table>
</div>
<span style="font-family: Arial, Helvetica;"><div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: yellow; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"> </span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="font-family: Tahoma; font-size: x-small;"><u>ملاحظة اخرى </u></span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="font-family: Tahoma; font-size: x-small;">لو لاحظت انني وضعت العنوان <span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;">StartMenu قبل بدايه اوامر طبع القائمة ليعاد طبعها وادخال المتغيرات متى كان الادخال خطأ وبتوجيه من الامر goto ولكني وضعته بعد الامر </span></span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="font-family: Tahoma; font-size: x-small;"> </span></span></div>
<div class="MsoPlainText" dir="ltr" style="direction: rtl; line-height: 150%; margin: 0px; unicode-bidi: embed; word-spacing: 0px;">
<span dir="ltr" lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="font-family: Tahoma; font-size: x-small;">char input;<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"> </span></span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span lang="AR-SA" style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="background-attachment: scroll; background-position: 0% 50%; background-repeat: repeat; mso-fareast-font-family: MS Mincho; mso-highlight: yellow;"><span style="font-family: Tahoma; font-size: x-small;">لانه اعلان ولا يهم البرنامج اعادة الاعلان بل قد يعترض الكومبايلر نفسه اذا فعلت ذلك</span></span><span style="font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></span></div>
<div class="MsoPlainText" dir="rtl" style="direction: rtl; line-height: 150%; margin: 0px; text-align: right; unicode-bidi: embed; word-spacing: 0px;">
<span style="color: white; font-family: Tahoma; font-size: x-small;"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span></span></div>
</span></div>
<span style="font-family: Arial, Helvetica;"><div align="center" style="line-height: 150%; margin: 0px; word-spacing: 0px;">
<span style="font-family: Tahoma; font-size: x-small;"> </span><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"><span style="color: white; font-family: Tahoma; font-size: x-small;"><a href="http://mohandes.net/services.html"> </a></span></span></div>
</span></td></tr>
</tbody></table>
<span style="font-family: Arial, Helvetica;"> </span><table bgcolor="#ffffff" border="0" cellpadding="0" cellspacing="0" style="width: 100%px;"><tbody>
<tr><td><span style="font-family: Arial, Helvetica;"> </span><div align="center">
<span style="font-family: Arial, Helvetica;"> </span><center>
<span style="font-family: Arial, Helvetica;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 600px;"> <tbody>
<tr><td><span style="font-family: Arial, Helvetica;"> </span><table border="0" cellpadding="0" cellspacing="0" style="height: 1px; width: 100%px;"> <tbody></tbody></table>
</td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
</td><td height="40" width="0"><br /></td></tr>
</tbody></table>
</center>
</div>
<table align="center" border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 600px;"> <tbody>
<tr><td height="15" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial, Helvetica;"> </span><div align="center">
<span style="font-family: Arial, Helvetica;"><span style="font-family: Tahoma;"><a href="https://www.blogger.com/null">عودة</a></span></span></div>
</td></tr>
<tr><td height="15" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial, Helvetica;"> </span><table border="0" cellpadding="0" cellspacing="0" id="AutoNumber1" style="border-collapse: collapse; font-family: Arial; font-size: 10px; height: 18px; width: 760px;"> <tbody>
<tr><td height="18" width="18"><span style="font-family: Arial, Helvetica;"> <img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/5_files/btlf.gif" width="18" /></span></td><td bgcolor="#4a6bb5" height="18" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial, Helvetica;"> </span></td><td height="18" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;" width="18"><span style="font-family: Arial, Helvetica;"><img border="0" height="18" src="file:///G:/كتب%20لغات%20برمجية/c++%20تعلم%20لغة%20البرمجة/C++/5_files/btrt.gif" width="18" /></span></td></tr>
</tbody></table>
</td></tr>
<tr><td style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial, Helvetica;"> </span><div align="center">
<span style="font-family: Arial, Helvetica;"> </span><center>
<span style="font-family: Arial, Helvetica;"> </span><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse; width: 760px;"> <tbody>
<tr><td align="center" height="10" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><br /></td></tr>
<tr><td align="center" height="20" style="border-bottom-style: none; border-collapse: collapse; border-left-style: none; border-right-style: none; border-top-style: none;"><span style="font-family: Arial, Helvetica;"> </span></td></tr>
</tbody></table>
</center>
</div>
</td></tr>
</tbody></table>
<span style="font-size: x-small;"><span style="mso-fareast-font-family: MS Mincho;"><span style="font-family: "tahoma";"><span lang="AR-SA" style="mso-fareast-font-family: MS Mincho;"> </span> </span></span></span></div>
Anonymoushttp://www.blogger.com/profile/08900978179572895284noreply@blogger.com0tag:blogger.com,1999:blog-3320190962645860783.post-71673071036343500002016-06-01T01:18:00.002-07:002016-06-05T08:10:37.456-07:00<div dir="rtl" style="text-align: right;" trbidi="on">
السلام علييكم و رحمة الله و بركاته اقدم اليوم لكم دروس تعليمية في تسييت النانو ستيشن و تسييت الراوتر على ابراج الانترنيت هناك فقرة مهمة ان كل برج له اعدادته الخاصة و هي التي تحكم ان كانت نوع الخدمة الجيدة من الرديئة لكن التسييت العادي الذي تريد ان تتعلمه في البداية هو كالأتي في درووس . ان شاء الله الفائدة تعم على الجميع في هذا النشر و اليكم الروابط للتعليم <br />
<br />
<a href="https://www.youtube.com/watch?v=pV51scPcGfg">طريقة تنصيب النانو اسيشن 5 في العراق </a><br />
<a href="https://www.youtube.com/watch?v=p4WCie-oqJQ">طريقة تنصيب الراوتر الجديد </a> </div>
Anonymoushttp://www.blogger.com/profile/08900978179572895284noreply@blogger.com0حي العامل، بغداد، العراق33.282646805963161 44.32642221450805733.281817305963159 44.325161714508056 33.283476305963163 44.327682714508057tag:blogger.com,1999:blog-3320190962645860783.post-90331688377577185752016-06-01T01:09:00.002-07:002016-06-01T01:50:30.017-07:00<div dir="rtl" style="text-align: right;" trbidi="on">
<h2>
راابط الشرح
السلام عليكم و رحمة الله وبركاته اقدم لكم من موقع centerAlaa.net برمجة تعليمية و طباعة و طريقة الصحيحة للبرمجة والفرمتة و طريقة تقديم المعاملات الالكترونية .. اول درس نأخذ كيفية العمل على الوررد و الاكسل والبور بوينت تعد من أساسيات الحاسبة حيث كل برنامج له ميزة محددة مسقبلية . هذه الروابط لدخول التعليم </h2>
<a href="https://youtu.be/Y1yOmRN0CK4">شرح دروس الوورد 2010</a><br />
<a href="https://www.youtube.com/watch?v=kfKSQri-CWI">شرح دروس الاكسل </a><br />
<a href="https://www.youtube.com/watch?v=fwkHcO1srS0">شرح دروس البور بوينت </a><br />
<br /></div>
Anonymoushttp://www.blogger.com/profile/08900978179572895284noreply@blogger.com0