|
|
От: |
omka
|
|
| Дата: | 06.09.06 07:12 | ||
| Оценка: | 2 (1) | ||
DNN>left of '->a' must point to class/struct/union/generic type
...
typedef struct Rec { int x } R;
...
void* P = malloc( sizeof( R ) );
( ( R* )P )->x = 5;
...( R* )malloc( sizeof( R ) );