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.
User Profile
Collapse
-
How to count in Preprocessor C
I want to count values in a struct.
Now I want to make the size of Newbuffer the sum of all "x", that is 146. Not the size of X.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[ ????? ]
...
No activity results to display
Show More
Leave a comment: