在gcc下example1和example2都是16 中默認(rèn)字節(jié)對齊為4 所以都是16
On windows platform,VS is the most powerful and professional IDE, but in linux ur solution is a good choice.
re: 刪除首次出現(xiàn)字串 feosun 2008-07-08 08:37
while (!*s2)
return ret;
寫成
if (!*s2)
return ret;
不是更好么