您的位置:首页 > 编程语言 > C语言/C++

C/C++ 常见编译错误及解决办法

2016-04-18 12:57 148 查看

1、outside of class is not definition

You have semicolons (;) at the end of all your function definitions making the compiler think they're declarations.

在方法定义的后面都误添加上了";",导致编译器认为这仅仅是个声明。

2、warning: backslash and newline separated by space

\ 后面多了一个空格。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: