level 9
zhangjb90s
楼主
#include <stdio.h>
#include <conio.h>
#include <malloc.h>
#include <string.h>
int main(){
char *ptr;
int i=1;
while(!kbhit())
{
ptr=(char*)malloc(1024*1024);
strcpy(ptr,"aaaaaa");
printf("%d\n",i);
i++;
}
getch();
return 0;
}