不包括,要不就没有空字符串了
{intlen =0;while(x[len]) len++;returnlen; }intmain(void) {charstr[100]; printf("str:"); scanf("%s", &str); printf("the length: %d\n", str_len(str));return0; } 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 2、 #include ...