我有一个
char s9[7] = "[abcd]";
我如何删除括号[]
,以便
s9 == "abcd"
我努力了
s9 = s9.Substring(1, s9.Length-2);
在cygwin中抛出错误
a2v2.c:42:13: error: request for member ‘Substring’ in something not a structure or union
a2v2.c:42:29: error: request for member ‘Length’ in something not a structure or union
编辑:
我意识到我的错误,我是 c 的初学者,无法区分 c 和 C++ 代码,问候