return list of values between parenthesis (10, 20, 30, 40)?

后端 未结 4 1221
自闭症患者
自闭症患者 2020-12-06 14:23

I am working in C++ (not C++/CLI) in Visual Studio 2012.

I don\'t understand why this code works, I would have expected it to fail

4条回答
  •  攒了一身酷
    2020-12-06 15:09

    the expression (10, 20, 30, 40) is actually a series of 4 expressions separated by , You can use , to separate multiple expressions and the result is the evaluation of the last one.

提交回复
热议问题