面試基礎(一)-字符串函數

最新更新strncpy strstr函數 學過C語言都知道的幾個str函數,同學面試騰訊的時候也問到了strlen的遞歸實現,我也給出來~ strlen的實現 1 #include<iostream> 2 #include<cassert> 3 using namespace std; 4 5 6 int my_strlen(const char * str) 7 { 8
相關文章
相關標籤/搜索