遞歸和非遞歸實現strlen

#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #include <stdlib.h> int str(char* p) { //int length=0; //while (*p != '\0') { // ++length; // ++p; //} //return length; if (*p == '\0') { re
相關文章
相關標籤/搜索