Search:

Type: Posts; User: debugg

Search: Search took 0.00 seconds.

  1. Replies
    5
    Views
    1,413

    i completed the code in the second post. ...

    i completed the code in the second post.



    static const int data[instruction] ={status_1 : 32,
    status_2 : 192,
    status_3 : 35
    };
  2. Replies
    5
    Views
    1,413

    Sorry i missed one part in it.. Here is the...

    Sorry i missed one part in it.. Here is the complete code:


    typedef enum {
    status_1 = 'h12,
    status_2 = 'h14,
    status_3 = 'h15
    } instruction;

    static const int data[instruction] ={status_1 :...
  3. Replies
    5
    Views
    1,413

    Error: non constant expression

    Hi all,

    I am trying to do the following in C++



    static const int data[code]={status_1 : 32,
    status_2 : 192,
    status_3 : 35
    };
Results 1 to 3 of 3