Variable number of arguments in C++?

后端 未结 17 1752
-上瘾入骨i
-上瘾入骨i 2020-11-21 23:13

How can I write a function that accepts a variable number of arguments? Is this possible, how?

17条回答
  •  伪装坚强ぢ
    2020-11-21 23:47

    As others have said, C-style varargs. But you can also do something similar with default arguments.

提交回复
热议问题