[an error occurred while processing this directive]
|
#include "alloc.h"
typedef unsigned char byte;
typedef unsigned int word;
typedef struct {
byte *x[1000];
} DinamicMemoryType;int main(void)
{
word it;
DinamicMemoryType *dm;
dm=(DinamicMemoryType *)malloc(1000);
for(it=0;it<1000;it++){
dm->x[it]=(byte *)malloc(1);
*(dm->x[it])=it;
}
//...
return 0;
}
Составить ответ ||| Конференция ||| Архив
Ответы