C++: Printing ASCII Heart and Diamonds With Platform Independent

前端 未结 4 1267
孤城傲影
孤城傲影 2021-01-02 17:13

I\'m developing a card playing game and would like to print out the symbol for hearts, diamonds, spades and clubs. My target platform will be Linux.

In Windows, I k

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-02 17:19

    The top answer is now out of date or was not correct.

    The ASCII codes for clubs, diamonds, hearts, spades are now '\5', '\4', '\3', '\6' respectively.

提交回复
热议问题