会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
RD少了D
|
首页
|
新随笔
|
新文章
| | |
管理
2010年12月29日
structure - "." & "->"
摘要: 編譯器:DEV-C++之前都誤以為『 . 』跟『->』是差不多的但是根據實驗宣告的是structure,用『 . 』。宣告的是point structure,用『->』。下面是範例記得!point structure要規劃一塊記憶體位置給他用!!
阅读全文
posted @ 2010-12-29 16:30 RD少了D
阅读(125)
评论(0)
推荐(0)
C 複製字串的小現象
摘要: 根據說明#include <string.h>char * strncpy ( char * destination, const char * source, size_t num );有趣的來了所有的範例都是用char arraychar destination[]char source[]我使用的是dev c++如果把兩個都宣告成為char*執行的時候就會看到存取錯誤但是 destination 宣告為char array source 宣告為 char*也是可以的
阅读全文
posted @ 2010-12-29 11:31 RD少了D
阅读(149)
评论(0)
推荐(0)