C programming 问题if now i have a string "if gcc a.out"
how to transfer this string into "gcc a.out", which means delete the substring"if ".
thanks for advice.
如果没理解错你的问题,你可以这样做
char * sString = "if gcc a.out";
char * sSubString = sString + 3;
++++++++++++++++++++++++++++++++++
sSubString不就是你想要的嘛。
char * sSubString = sString + 3;
++++++++++++++++++++++++++++++++++
sSubString不就是你想要的嘛。