• 0
  • مالي خلق
  • أتهاوش
  • متضايق
  • مريض
  • مستانس
  • مستغرب
  • مشتط
  • أسولف
  • مغرم
  • معصب
  • منحرج
  • آكل
  • ابكي
  • ارقص
  • اصلي
  • استهبل
  • اضحك
  • اضحك  2
  • تعجبني
  • بضبطلك
  • رايق
  • زعلان
  • عبقري
  • نايم
  • طبيعي
  • كشخة
  • النتائج 1 إلى 3 من 3

    الموضوع: BGI not supported ... ?

    1. #1
      التسجيل
      02-04-2002
      المشاركات
      89
      المواضيع
      23
      شكر / اعجاب مشاركة

      BGI not supported ... ?

      شباااااب عندي مشكلة

      عندي هذا الكود للــــ C++

      المشكلة عندي أنه فيه جرافيكس و كل ما احاول انفذه تجيني رسالة

      bgi not supported under windows

      و هذا الكود

      #include<graphics.h>
      #include<conio.h>
      #include<dos.h>
      #include<math.h>
      class ball {
      protected:
      double x,y;
      int R,color;
      public:
      ball(double a,double b,int c,int d):x(a),y(b),R(c),color(d) {}
      void show() {
      setcolor(color);
      circle((int)x,(int)y,R);
      }
      void hide () {
      setcolor(0);
      circle((int)x,(int)y,R);
      }};
      class Tballublic ball {
      int dx,dy;
      public:
      Tball(double a,double b,int c,int d,int e,int f):ball(a,b,c,d),dx(e),dy(f) {}
      void move() {
      hide();
      x+=dx;
      y+=dy;
      if(x<=R || x>=640-R)
      dx=-dx;
      if(y<=R || y>=480-R)
      dy=-dy;
      show();
      }};
      class Rballublic ball {
      int xc,yc;
      double theta;
      public:
      Rball(double a,double b,int c,int d,int e,int f,double g):ball(a,b,c,d),xc(e),yc(f),theta(g) {}
      void move()
      {
      hide();
      double xr,yr;
      xr=xc+(x-xc)*cos(theta)+(y-yc)*sin(theta);
      yr=yc-(x-xc)*sin(theta)+(y-yc)*cos(theta);
      x=xr;
      y=yr;
      show();
      }};
      void main() {
      int g=0,m;
      initgraph(&g,&m,"c:\\BC5\\BGI");
      Rball p(400,240,15,14,320,240,0.1);
      Rball q(480,240,10,2,320,240,0.2);
      Tball z(320,240,5,15,5,5);
      p.show();
      q.show();
      z.show();
      while(!kbhit())
      {
      setcolor(7);
      circle(320,240,80);
      circle(320,240,160);
      delay(30);
      p.move();
      q.move();
      z.move();
      }
      closegraph();
      }



      ياليت اللي يقدر يلاقيلي حل يقوللي اياه

    2. #2
      التسجيل
      11-03-2002
      الدولة
      RT
      المشاركات
      345
      المواضيع
      38
      شكر / اعجاب مشاركة

      Re: BGI not supported ... ?

      انا جيت ابي اجربه لكن كانت تطلع لي هذي الرسالة:
      وهي عدم وجود ملف العيدر جرافكس.

      كود:
      c:\my documents\cpp1.cpp(1) : fatal error C1083: Cannot open include file: 'graphics.h': No such file or directory
      Error executing cl.exe.
      
      Cpp1.obj - 1 error(s), 0 warning(s)

      (ملاحظة : ياليت تصغر توقيعك نبغي نطبع الصفحة)

    3. #3
      التسجيل
      29-05-2003
      الدولة
      السعودية
      المشاركات
      94
      المواضيع
      20
      شكر / اعجاب مشاركة

      Error

      أنا جربته على ال
      Dev-C++ 4
      و طلع لي الإيرور:
      graphics.h : No such file or directory?:

      www.amer101.cjb.net

    ضوابط المشاركة

    • لا تستطيع إضافة مواضيع جديدة
    • لا تستطيع الرد على المواضيع
    • لا تستطيع إرفاق ملفات
    • لا تستطيع تعديل مشاركاتك
    •