您的位置:首页 > 其它

使用scanf时容易出现的错误

2017-09-22 11:11 253 查看
int  n;

scanf("%d", n);

Unhandled exception in *.exe: 0xC0000005: Access Violation.

应修改为:

scanf("%d", &n);

参考:
https://stackoverflow.com/questions/15716112/unhandled-exception-error-c-programming
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐