相关疑难解决方法(0)

C逗号运算符的使用

你看到它用于for循环语句,但它在任何地方都是合法的语法.您在其他地方找到了什么用途,如果有的话?

c c++ comma-operator

88
推荐指数
10
解决办法
2万
查看次数

什么'?' 用C++做什么?

int qempty()
{
    return (f == r ? 1 : 0);
}
Run Code Online (Sandbox Code Playgroud)

在上面的代码片段中," "是什么意思?我们可以用什么替代它?

c++ operators ternary-operator

65
推荐指数
5
解决办法
18万
查看次数

标签 统计

c++ ×2

c ×1

comma-operator ×1

operators ×1

ternary-operator ×1