本文共 1472 字,大约阅读时间需要 4 分钟。
????????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????
malloc()?free()???????????????????????????????????????????
??????????????????????????????????
malloc()?free()????????????????void strcpy(char *dest, char *src) { while (*dest++ = *src++) { *dest = 0; }} char cTemp; // ????void SwapChar1(char *lpcX, char *lpcY) { cTemp = *lpcX; *lpcX = *lpcY; lpcY = cTemp;} static char cTemp; // ??????void SwapChar2(char *lpcX, char *lpcY) { cTemp = *lpcX; *lpcX = *lpcY; lpcY = cTemp;} unsigned int sum_int(unsigned int base) { static unsigned int sum = 0; // ???sum????? for (unsigned int index = 1; index <= base; ++index) { sum += index; } return sum;} ??????????????????
sum?static????????auto?????????????????????????
?????????????????????????????????
转载地址:http://llyzz.baihongyu.com/