以反斜线结尾时,会将下一行和当前行连接在一起,即使当前行是注释行:
int main()
{
int i = 0;
// backslash test \
if(i > 0)
{
std::cout << "i is greater than 0!" << std::endl;
}
return 0;
}
编译后的运行结果为:
[tortoise@sea temp]$ ./test i is greater than 0! [tortoise@sea temp]$