C++ syntax question - Why can't I use comma to separate variable definition of different types

后端 未结 0 630
后悔当初
后悔当初 2020-12-12 12:57
int main() {
  std::cout << 1, std::cout << 2;
  return 0;
}

The above snippet is syntactically correct, as commas can be used to separa

相关标签:
回答
  • 消灭零回复
提交回复
热议问题