undefined reference to strrev 解決方案

其實strrev這個函數不是系統庫裏面的,編譯器不自帶,要是出現undefined reference to strrev這個報錯怎麼辦呢,那就本身寫一個嘍,😀web #include <stdio.h> #include <string.h> #include <stdlib.h> char* strrev(char *str) { char *p1, *p2; if (!
相關文章
相關標籤/搜索