carneades作者
16年11个月前IP:未同步
194979
5楼
谢谢4楼!
今天傍晚我把昨天代码中的“r”改成“w”,编译时没有出错。但是运行时,即便输入@也没有停止getchar。很奇怪。

const char *path = "D:\\\\Users\\\\MiniLight\\\\Desktop\\\\New Text Document.txt";
这句话定义并初始化了一个char类型指针,为什么指向文件?为什么要Const?
我把4楼的代码复制到VC6上,编译的时候居然报错1 error(s), 0 warning(s)。
评论
文号 / 194979

十步芳草
名片发私信
学术分 0
总主题 18 帖总回复 480 楼拥有证书:笔友
注册于 2008/08/18 13:47:00最后登录 2017/07/15 01:49:48
主体类型:个人
所属领域:无
认证方式:邮箱
IP归属地:0

个人简介

暂未填写
笔记
{{note.content}}
{{n.user.username}}
{{fromNow(n.toc)}} {{n.status === noteStatus.disabled ? "已屏蔽" : ""}} {{n.status === noteStatus.unknown ? "正在审核" : ""}} {{n.status === noteStatus.deleted ? '已删除' : ''}}
  • 编辑
  • 删除
  • {{n.status === 'disabled' ? "解除屏蔽" : "屏蔽" }}
我也是有底线的