首页 > 解决方案 > 如何测试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 ?

标签: c++testingcompilation

解决方案


推荐阅读