/* 又有新问题,见5楼,还是关于这个代码的*/
#include <stdio.h>
#include <stdlib.h>
char count, *ptr, *p;
int main( )
{
ptr = malloc(35 * sizeof(char));
if (ptr == NULL)
{
puts("Memory error.");
return 1;
}
p = ptr;
for (count = 65; count < 91 ; count++)
*p++ = count;
*p = '\0';
puts(ptr);
free(ptr);
return 0;
}
[此贴子已经被作者于2007-8-20 19:27:52编辑过]