Difference between revisions of "Basic Pascal Tutorial/Hello, World/ar"

From Lazarus wiki
Jump to navigationJump to search
(Created page with "{{Basic Pascal Tutorial/مرحبا بالعالم}} {{TYNavigator|Compilers|Chapter 1/Program Structure}} مرحبا بالعالم (المؤلف: Tao Yue, الحالة: دو...")
 
Line 15: Line 15:
 
</syntaxhighlight>
 
</syntaxhighlight>
  
The output on your screen should look like:
+
يجب أن يبدو الإخراج على شاشتك كما يلي:
 
  Hello, world.
 
  Hello, world.
  
 
If you're running the program in an IDE, you may see the program run in a flash, then return to the IDE before you can see what happened. See the bottom of the previous lesson for the reason why. One suggested solution, adding a readln to wait for you to press Enter before ending the program, would alter the "Hello, world" program to become:
 
If you're running the program in an IDE, you may see the program run in a flash, then return to the IDE before you can see what happened. See the bottom of the previous lesson for the reason why. One suggested solution, adding a readln to wait for you to press Enter before ending the program, would alter the "Hello, world" program to become:
 +
 +
إذا كنت تشغل البرنامج في IDE، فقد ترى البرنامج يومض، ثم تعود إلى IDE قبل أن تتمكن من رؤية ما حدث. انظر أسفل الدرس السابق لمعرفة السبب. أحد الحلول المقترحة هو إضافة readln لانتظار الضغط على Enter قبل إنهاء البرنامج، من شأنه أن يغير برنامج "Hello, World" ليصبح:
  
 
<syntaxhighlight lang=pascal>
 
<syntaxhighlight lang=pascal>

Revision as of 22:45, 25 January 2024

Template:Basic Pascal Tutorial/مرحبا بالعالم

 ◄   ▲   ► 

مرحبا بالعالم (المؤلف: Tao Yue, الحالة: دون تغيير)

أحد التقاليد المعتادة في تاريخ برمجة الكمبيوتر أن أول برنامج بلغة جديدة هو طباعة "مرحبًا بالعالم" على الشاشة. لذلك دعونا نفعل ذلك. انسخ البرنامج أدناه والصقه في IDE أو محرر النصوص، ثم قم بتجميعه وتشغيله.

إذا لم تكن لديك أي فكرة عن كيفية القيام بذلك، فارجع إلى جدول المحتويات. تشرح الدروس السابقة ما هو المترجم، وتعطي روابط للمترجمات القابلة للتنزيل، وترشدك خلال عملية تثبيت مترجم Pascal مفتوح المصدر على Windows.

program Hello;
begin
  writeln ('Hello, world.');
end.

يجب أن يبدو الإخراج على شاشتك كما يلي:

Hello, world.

If you're running the program in an IDE, you may see the program run in a flash, then return to the IDE before you can see what happened. See the bottom of the previous lesson for the reason why. One suggested solution, adding a readln to wait for you to press Enter before ending the program, would alter the "Hello, world" program to become:

إذا كنت تشغل البرنامج في IDE، فقد ترى البرنامج يومض، ثم تعود إلى IDE قبل أن تتمكن من رؤية ما حدث. انظر أسفل الدرس السابق لمعرفة السبب. أحد الحلول المقترحة هو إضافة readln لانتظار الضغط على Enter قبل إنهاء البرنامج، من شأنه أن يغير برنامج "Hello, World" ليصبح:

program Hello;
begin
  writeln ('Hello, world.');
  readln;
end.
 ◄   ▲   ►