c++ - 如何测试c++代码是否有编译错误
问题描述
/* I have this code in src folder*/
#include <iostream>
using namespace std;
int main()
enter code here{
cout<< "Hello World";
return 0;
}
// What should be the test code that checks if the source code has any compilation error ?
解决方案
推荐阅读
- reportbuilder - 在 MS Report Builder 中显示前一周的日期间隔
- r - 如何根据行顺序绘制变量
- powershell - 字体文件 Powershell/.NET 扩展属性
- python - 如何使用 ManyToManyField 中的公共 ID 数量注释查询集
- c# - 如何从嵌套的 JSON 数组中按键获取值?
- python - 从 Github 自动更新您的文件
- python - JSONDecodeError:期望值:使用有效 json 时的第 1 行
- c# - 使用 LINQ 从列表列表中返回选择对象和仅所需的子值
- youtube-api - 我可以在没有说明来自 YouTube 的情况下嵌入 YouTube 视频吗?
- makefile - 每次都重新运行构建