【C++问题】 error: character constant too long for its type

error: character constant too long for its type

这个错误是因为在打印时使用了单引号' '导致的。将其更改为双引号 " " 即可解决。

参考链接:
https://blog.csdn.net/AngelDg/article/details/130016350

你可能感兴趣的:(C++问题解决,c++,linux,学习)