[ACM] Modular thinking
流畅敲出
内存拷贝
#include <string.h> char* strcpy (char* des, const char* source) char *strncpy(char *destinin, char *source, int maxlen); void *memcpy (void *destin, void *source, unsigned n);
小窗口判断
char *pPre = nullptr; char *pNow = nullptr; for (int i = 0; i < loop_size; ++i) { pPre = pDat + i; pNow = pDat + i + 1; char preChar = *pPre; char nowChar = *pNow; ------------------------------- if else if else if else if
-------------------------------
}