![]() |
![]() مساحة اعلانات نصية ذهبية |
||
اعلن هنا | اعلن هنا | صحيفة عالم الإخبارية |
صحيفة | مساحة إعلانيه |
|
|
|
|
أدوات الموضوع | انواع عرض الموضوع |
#1
|
|||
|
|||
![]()
السلام عليكم و رحمة الله و بركاته
مطلوب مني برمجة برنامج بالـ C++ Builder يكون فيه قائمة File فيها Restart و Exit على الأقل و 4 اشارات مرور و كل اشارة مرور معها عداد حالياً انا برمجت البرنامج و فيه القائمة file فيها exit ناقصني Restart لإعادة عمل البرنامج من البداية و ناقصني العداد المصاحب لكل اشارة مرور , المشكلة انو تسليم المشروع يوم الأربعاء و حاولت و ما قدرت اصل لحل في باقي البرنامج البرنامج النموذج المراد عمل شبيه له :- http://www.mediafire.com/?gbdo8r3tgblvm2s درجات المشروع تحسب على الزيادات في البرنامج أي انه اذا تم تصميم البرنامج كما هو تأخذ نصف الدرجة عملي في المشروع حتى الآن : - ![]() الكود المبرمج به برنامجي كود: //--------------------------------------------------------------------------- #include #pragma hdrstop #include "TrafficLightSimulation.h" //--------------------------------------------------------------------------- #pragma resource "*.dfm" TForm1 *Form1; //--------------------------------------------------------------------------- void __fastcall TForm1::close1Click(TObject *Sender) { Close(); } //--------------------------------------------------------------------------- __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner) { } //--------------------------------------------------------------------------- void __fastcall TForm1::FormCreate(TObject *Sender) { // If the current color is red if( shpRed->Brush->Color == clRed ) { // Change the color to green Timer1->Interval = 3500; shpRed->Brush->Color = clSilver; shpYellow->Brush->Color = clSilver; shpGreen->Brush->Color = clGreen; } // But if the color is green else if( shpGreen->Brush->Color == clGreen ) { // Change the color to yellow Timer1->Interval = 2000; shpRed->Brush->Color = clSilver; shpYellow->Brush->Color = clYellow; shpGreen->Brush->Color = clSilver; } // Otherwise, if the color is yellow else // if(shpYellow->Brush->Color == clYellow { // Change the color to red Timer1->Interval = 18600; shpRed->Brush->Color = clRed; shpYellow->Brush->Color = clSilver; shpGreen->Brush->Color = clSilver; } } //--------------------------------------------------------------------------- void __fastcall TForm1::shpRedMouseDown(TObject *Sender, TMouseButton Button, TShiftState Shift, int X, int Y) { Close(); } //--------------------------------------------------------------------------- void __fastcall TForm1::Timer2Timer(TObject *Sender) { // If the current color is red if( shpRed2->Brush->Color == clRed ) { // Change the color to green Timer2->Interval = 3500; shpRed2->Brush->Color = clSilver; shpYellow2->Brush->Color = clSilver; shpGreen2->Brush->Color = clGreen; } // But if the color is green else if( shpGreen2->Brush->Color == clGreen ) { // Change the color to yellow Timer2->Interval = 2000; shpRed2->Brush->Color = clSilver; shpYellow2->Brush->Color = clYellow; shpGreen2->Brush->Color = clSilver; } // Otherwise, if the color is yellow else // if(shpYellow2->Brush->Color == clYellow { // Change the color to red Timer2->Interval = 19000; shpRed2->Brush->Color = clRed; shpYellow2->Brush->Color = clSilver; shpGreen2->Brush->Color = clSilver; } } //--------------------------------------------------------------------------- void __fastcall TForm1::Timer3Timer(TObject *Sender) { // If the current color is red if( shpRed3->Brush->Color == clRed ) { // Change the color to green Timer3->Interval = 3500; shpRed3->Brush->Color = clSilver; shpYellow3->Brush->Color = clSilver; shpGreen3->Brush->Color = clGreen; } // But if the color is green else if( shpGreen3->Brush->Color == clGreen ) { // Change the color to yellow Timer3->Interval = 2000; shpRed3->Brush->Color = clSilver; shpYellow3->Brush->Color = clYellow; shpGreen3->Brush->Color = clSilver; } // Otherwise, if the color is yellow else // if(shpYellow3->Brush->Color == clYellow { // Change the color to red Timer3->Interval = 18800; shpRed3->Brush->Color = clRed; shpYellow3->Brush->Color = clSilver; shpGreen3->Brush->Color = clSilver; } } //--------------------------------------------------------------------------- void __fastcall TForm1::Timer4Timer(TObject *Sender) { // If the current color is red if( shpRed4->Brush->Color == clRed ) { // Change the color to green Timer4->Interval = 3500; shpRed4->Brush->Color = clSilver; shpYellow4->Brush->Color = clSilver; shpGreen4->Brush->Color = clGreen; } // But if the color is green else if( shpGreen4->Brush->Color == clGreen ) { // Change the color to yellow Timer4->Interval = 2000; shpRed4->Brush->Color = clSilver; shpYellow4->Brush->Color = clYellow; shpGreen4->Brush->Color = clSilver; } // Otherwise, if the color is yellow else // if(shpYellow4->Brush->Color == clYellow { // Change the color to red Timer4->Interval = 18700; shpRed4->Brush->Color = clRed; shpYellow4->Brush->Color = clSilver; shpGreen4->Brush->Color = clSilver; } } //--------------------------------------------------------------------------- void __fastcall TForm1::Exit1Click(TObject *Sender) { Close() ; } //--------------------------------------------------------------------------- |
![]() |
||||
alam | alam | alam | alam | alam |
alam | alshamsi | مساحة إعلانيه |
![]() |
w6n |
w6n |
|
|
![]() |
||||
الموضوع | كاتب الموضوع | المنتدى | مشاركات | آخر مشاركة |
[ مساعدة ] ممكن طريقة عمل برنامج حسابي بالـ Visual Basic | rss | اشراق شامل - منوعات | 0 | 10-31-2012 04:40 PM |
هيا بنا نتعلم اشارات المرور واخطاء القيادة | eshrag | اشراق شامل - منوعات | 0 | 01-15-2012 08:30 PM |
مساعدة فى محاكى gamecube | eshrag.net | اشراق شامل - منوعات | 0 | 08-03-2011 11:10 PM |
صور اشارات المرور الجديده في اليابان - شي مايخطر على البال | alfares | المنتدى العام - مواضيع عامة | 3 | 06-08-2011 07:59 PM |
طلب مساعدة في برمجة هاك | مبرمج | اشراق شامل - منوعات | 0 | 04-25-2009 07:22 AM |
![]() |
|
راسلنا الآن لشراء روابط نصية باك لينك وجيست بوست | خدمات الباك لينك والروابط النصية |
![]() |
||||
متجر كي ستور | شدات ببجي اقساط | بطاقات قوقل بلاي | بطاقات ايتونز | اكواد شدات ببجي |
![]() |
|||||||
خصومات | مساحة إعلانيه |
![]() |
||||
تقييم شركة exness | تقييم شركة binance | تقييم شركة avatrade | تقييم شركة evest | افضل شركات التداول |
![]() |
||||
تشليح السيارات بالرياض | شراء سيارات تشليح بالرياض | تشليح | تشليح الحاير | تشليح السلى |
موقع شراء سيارات تشليح | شراء سيارات تشليح | تشليح السيارات | قطع غيار تشليح | تشاليح |
![]() |
||
عبادي الخليج | شدات ببجي | شدات ببجي تمارا |
![]() |
|||||
كيفية شراء سهم امازون | كيفية شراء سهم ارامكو | كيفية شراء سهم لوسيد | كيفية الاستثمار في الذهب | تقييم شركة evest | تعلم تداول الاسهم |
![]() |
||||
سطحة شمال الرياض | سطحة بين المدن | سطحه شرق الرياض | شحن السيارات | سطحة هيدروليك |
سطحة هيدروليك | نقل السيارات بين المدن | ارخص شركة شحن بين المدن | شركة شحن سيارات | شراء سيارات تشليح |
![]() |
||||
ضوء التعليم | دروس الرياضيات | المعاني | قدرات وتحصيلي | ملخصات |
![]() |
||||
برشلونة مباشر | ريال مدريد مباشر | مباريات اليوم مباشر | كورة سيتي | كورة سيتي |
![]() |
||||
يلا شوت | yalla shoot | مباريات اليوم مباشر | ريال مدريد مباشر | برشلونة مباشر |
![]() |
||||
يلا شوت | yalla shoot | مشاهدة مباريات اليوم | يلا شوت | yalla shoot |
اهم مباريات اليوم | يلا لايف | يلا كورة | سيما فور يو | مساحة إعلانيه |
![]() |
||||
دراما كافيه | مسلسلات عربية 2025 | فوستا | اهواك تي في | وي دراما |
![]() |
|||
koora live | كورة لايف | مباريات اليوم مباشر | kora live |
![]() |
||||
koora live | كورة لايف | yalla shoot | يلا شوت | yalla live |
يلا لايف | livehd7 | الاسطورة لبث المباريات | yalla shoot | يلا شوت |
![]() |
|
yalla shoot live | نقل عفش من جدة الي مكة |
شركة نقل عفش بجدة | مساحة إعلانيه |