User Profile

Collapse

Profile Sidebar

Collapse
Cillo
Cillo
Last Activity: Nov 7 '14, 09:33 PM
Joined: Nov 6 '14
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Cillo
    replied to How to count in Preprocessor C
    in C
    Nop.
    I can't do any thing dynmaic.
    This is just a eks. I also need this no for somthing else, so it must be knowen at the compile time.
    See more | Go to post

    Leave a comment:


  • Cillo
    started a topic How to count in Preprocessor C
    in C

    How to count in Preprocessor C

    I want to count values in a struct.
    Code:
    typedef struct
    {
      int x;
      int test;
    }TYPE_TEST;
    
    TYPE_TEST My[6] ={
        {16, 50},
        {4,  51},
        {50, 52},
        {47, 53},
        {10, 54},
        {19, 55}
    };
    int Newbuffer[ ????? ]
    Now I want to make the size of Newbuffer the sum of all "x", that is 146. Not the size of X.
    ...
    See more | Go to post
No activity results to display
Show More
Working...