delphi4arab منتديات دلفي للعرب

نسخة كاملة : تمرين - الأخطاء الشائعة
أنت حالياً تتصفح نسخة خفيفة من المنتدى . مشاهدة نسخة كاملة مع جميع الأشكال الجمالية .
الصفحات : 1 2 3 4
لا يا اخي الكريم، دلفي بيئة تطوير -متطورة جدا بادواتها- تستعمل لغة الباسكال التي تم تطويرها الي كائنية... Pascal Object

عندك ايضا Borland C++ Builder
فاللغة هي Cpp

إقتباس :It utilizes a dialect of the Object Pascal programming language known as Delphi.[1]
هل انتبهت الى هذه الكلمة...

Lazarus بيئة تطوير للـــ Free pascal و بالنسبة للقدامى مثل اخي دلتا عزيز فهو يعرف جيدا Turbo pascal و غيرها...

الباسكال هو اللغة و مع تحسينات و اضافات و تطويرات اصبح بالشكل الذي تعرفه اليوم...

مثال آخر Meerkat واجهة تطوير بسيطة تتعامل مع مكونات خارجية لبناء الدرايفرز... و ليست بيئة تطوير لانها فقط مجرد GUI لتسهيل عملية البناء.

اللغة واحدة، يتم تطويرها، و البئات و الواجهات كثيرة، حيث انك تستطيع بمعرفة متوسطة صنع واجهة تطوير و بمعرفة عميقة -و مجموعة من المبرمجين- صنع بيئة تطوير لان هذه الأخيرة تستلزم بناء Compiler و غيره من الأدوات...

بالتوفيق ان شاء الله

دلفي بيئة تطوير ولغة برمجة

ما هو صحيح اليوم قد يصبح خطأ غدا،
قديما عندما كان يقال لي دلفي "لغة برمجة" كنت ارد دائما انها بيئة تطوير متكامل وليس لغة واللغة هي تطوير للباسكال Object Pascal
الى ان تغير الأمر، بورلاند Borland نفسها سمتها لغة انطلاقا من دلفي 7
يعني بيئة التطوير (المنتج التجاري) اسمه دلفي ولغة البرمجة اسمها دلفي ايضا
ابحث داخل Help دلفي 7 تجد ان دلفي لغة برمجة

بعض المصدار للاستزادة
تعريف دلفي بويكيبيديا (باللغة الفرنسية)
كود :
http://ar.wikipedia.org/wiki/دلفي_(لغة_برمجة)

إقتباس :دلفي (بالإنجليزية: Delphi أو Embarcadero Delphi‏)، CodeGear Delphi سابقاً، هي لغة برمجة كانت من إنتاج شركة بورلاند سابقا وتطورها الآن شركة Embarcadero Technologies. هذه اللغة مبنية على لغة باسكال الكائنية حيث تعتبر تطويراً للغة باسكال القديمة،...

تعريف دلفي بويكيبيديا (باللغة الفرنسية)
كود :
http://fr.wikipedia.org/wiki/CodeGear_Delphi
إقتباس :
Delphi désigne à la fois un environnement de développement intégré (EDI) et un langage de programmation orienté objet.
تعريف Object Pascal من ويكيا دلفي
كود :
http://delphi.wikia.com/wiki/Object_Pascal
إقتباس :
The Object Pascal dialect used in Delphi was basically a strongly (and incompatibly) enhanced version of the proposals in this draft is the native language of Delphi. (e..g in the original Object Pascal, all methods are virtual automatically). Delphi when started was regarded more as an IDE just like Visual Studio for RAD development purpose uptil Delphi version 6.0. However, from version 7.0 Delphi 7.0 itself was regarded as the language and the Object Pascal lost its name.
مقارنة استعمال/شعبية لغات البرمجة
كود :
http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
ولعل احسن واشمل اجابة عن سؤال ماهو دلفي هو هذا
كود :
http://wiki.answers.com/Q/What_is_Delphi
إقتباس :
Delphi is the name of the commercial Integrated Development Environment (IDE) for RAD created by Borland (see http://www.borland.com). Borland sold out Delphi and other RAD tools in the year 2008 to a company called Embarcadero Technologies which is now focusing on the newer versions of Delphi and other tools.
RAD stands for Rapid Application Development, meaning that common develoment tasks, such as creating user interfaces, have been made much easier. For instance, without RAD you would have to specify XY coordinates for every button and screen element, RAD allows you to drag and drop buttons onto screens using your mouse similar to a Mr. Potato Head.
The programming language in Delphi was Object Pascal, which is similar to the old "Structured" Pascal created by Niklaus Wirth in 1970. Though earlier their was a distinction made between Object Pascal being used as the language of Delphi and Delphi being considered as the IDE for the object pascal language but according to the definition used in the help files in Delphi 7 versions onwards we can see that infact Borland itself rebranded Delphi itself as a language. So, Delphi now becomes a language with a dedicated IDE available for it.
Delphi allows you to create Standard windows programs, ISAPI applications (web applications), Web Services, NT Services, console applications, DLL's, ActiveX controls, and COM objects.
The last version of the software "Delphi" was the Delphi 8 for .NET. After this it become sold as a part of the Borland Developer Studio (or simple BDS) in the versions 2005 and 2006, with the ability to compile for other platforms. At this time, the language stops to calls itself Object Pascal, but Delphi Language instead due the Microsoft .NET Framework support.
There is also a limited-but-free version of the BDS 2006 called Turbo Delphi. Its price is more attractive, but it does not have all the features that your Big Brother has: the languages that it supports aren't integrated, there are separated versions for each language and they can't be installed at the same machine (there is a protection to avoid this). There is another protection that doesn't let you to install additional "features" (Components) in the IDE, but this protection can be removed at a little charge.
The newest version of Delphi as of now is Delphi XE with its launch in 2010 it provides various capabilities to the language. However, there are still certain things missing with Delphi that its competing cousins are having which are - 64 bit support for application development, mobile phone application development and cross platform development to name a few. Though Embarcadero suggests that the Delphi compiler is going to undergo a complete overhaul and restructuring in the coming up releases so people might be seeing 64 bit support in Delphi in not much time. The 64 bit version is promised to be out in the first half of 2011.
والسلام عليكم ورحمة الله
السلام عليكم و رحمة الله
بارك الله فيك اخي عبد العزيز على الاضافة و التوضيح...
اصبح التمرين الآن مشوق جدا...

نكمل التمرين الموالي
ساختار تمرين سهل ليشارك الجميع

ما هو العدد الأولي ؟

1- عدد طبيعي يقبل القسمة فقط على نفسه وعلى الواحد.
2- عدد طبيعي لا يقبل القسمة على اثنين.
3- عدد طبيعي موجب يقبل قاسمين فقط.

عدد طبيعي يقبل القسمة فقط على نفسه وعلى الواحد
عدد طبيعي يقبل القسمة فقط على نفسه وعلى الواحد.
عدد طبيعي يقبل القسمة فقط على نفسه وعلى الواحد
دلفي هي "بيئة تطوير"
هي امتداد للغة c++
عدد طبيعي يقبل القسمة فقط على نفسه وعلى الواحد

بداية الرقم الأولى لابد أن يكون فردى
و هناك مكافأة سخية جدا جدا منى لمن يحضر لى عدد أولى زوجى


يتم الكشف عن أولية رقم عن طريق الخطوات الآتية

أخذ الجذر التربيعى للرقم
عمل حلقة FOR من 2 و حتى الجذر التربيعى
قسمة الجذر على قيمة متغير FOR "غالبا i "

فى حالة قبول القسمة بدون باقى يوضع أمر كسر الحلقة و هنا يكون الرقم غير أولى

لو تمكن الجذر من الفرار من كل عمليات القسمة (أعطى باقى فى كل العمليات)
و تمكن من عبور الحلقة بدون قبول القسمة على أى قيمة من قيم i

هنا فقط يمكننا تعريف الرقم صاحب هذا الجذر بأنه رقم أولى

ملحوضة
يمكن أن نستغنى عن الجذر و نستبدله بقيمة نصف الرقم
لكنى أعتمد طريقة الجذر
عدد طبيعي يقبل القسمة فقط على نفسه وعلى الواحد
الصفحات : 1 2 3 4