小编Bui*_*ded的帖子

警告 C4101 未引用的局部变量

void func(char * param)
{
#ifdef _XYZ_
.....somecode here using param
#endif
.....lots of code here not using param
}
Run Code Online (Sandbox Code Playgroud)

编译出错,我什至不希望在代码中发出警告。

c++ compiler-warnings

2
推荐指数
1
解决办法
1847
查看次数

在 C++ 中键入分号后,代码行移至下一行

我是Visual Studio 代码IDE 的新手。我喜欢在分号后格式化代码的整体想法;当我尝试在一条直线上写两行代码时,我不能。因为当我输入/键入第二行的分号时,它会自动将其带到下一行。

c c++ visual-studio-code

0
推荐指数
1
解决办法
212
查看次数

标签 统计

c++ ×2

c ×1

compiler-warnings ×1

visual-studio-code ×1