主题:【原创】如何REVERSE一个C STRING? -- 老成都
共:💬30 🌺11
Does your code really work?
Which compiler are you using and on which platform, Windows? Unix?
I tried your code using Visual C++ 6.0 on Windows and got an access violation for the following line as expected:
p[0] = p[0] + p[1];
Bigbug
- 相关回复 上下关系8
🙂把 int cnt 换成 char *end, 然后 1 tingsanguo 字64 2007-03-29 18:58:41
🙂有道理!花 无斋主人 字31 2007-03-29 19:09:45
🙂这个当然是工作过的人的标准答案,没另外用个 老成都 字146 2007-03-29 18:51:37
🙂Does it really work?
🙂I test it already.Notice: 老成都 字493 2007-02-23 21:23:04
🙂这个方法好。花 rtf0 字0 2007-02-19 19:50:16
🙂各路高手们,帮帮忙啊?俺挨个送花:),发言就有花! 老成都 字0 2007-02-18 17:09:30
🙂找了一下,网上的答案大多是错的. 老成都 字0 2007-02-18 17:02:51