Is there any kind of “expression class” (C++)

前端 未结 9 1411
眼角桃花
眼角桃花 2020-12-13 14:45

I am creating a game that lets the player enter input, changes some states, then checks if a \"goal value\" is true (obviously this description is muchly simplified), and I

9条回答
  •  伪装坚强ぢ
    2020-12-13 15:14

    I'm thinking you can define your own class and work around using the 'assert' keyword, but I may have understood the question wrong.

    http://www.cplusplus.com/reference/clibrary/cassert/assert/

提交回复
热议问题