Connect with us

Error c129

Discussion in 'Microcontrollers, Programming and IoT' started by Stas, Nov 18, 2017.

Scroll to continue with content
  1. Stas

    Stas

    2
    0
    Nov 18, 2017
    #include<reg51.h>

    sbit LED=P1^0; // pin0 of port1 is named as LED
    //for drowing man

    sbit bodybit0=P2^3;
    sbit legbit0=P2^3;

    sbit bodybit1=P3^5;
    sbit legbit1=P3^6;

    sbit ground0 = P2;
    sbit ground1 =P3^7;
    //Function declarations

    //void delay(int a);

    class Man {

    private:
    char legs;
    char body;

    public:
    Man (char a , char b );
    Man ();

    };

    man:: man (){
    Man::legs=0;
    Man::body=0;
    };

    Man::Man (char a , char b ){
    Man::legs = a;
    Man::body = b;
    };






    int main(void)
    {
    P2=0;
    P3=0;
    while(1)

    {
    ground0=0;
    ground1=1;


    //delay(600000);



    //delay(6000);

    }

    }


    //void delay (int a)

    //{

    //int i;

    //for( i=0; i<a; i++){} // Null statement execution i.e, delay time

    //};
     
  2. Stas

    Stas

    2
    0
    Nov 18, 2017
    SOMEBUTTON.c(18): error C129: missing ';' before 'Man'
     
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Electronics Point Logo
Continue to site
Quote of the day

-