vs2015 报的字符串超长错误

在猥琐死丢丢上做的项目。

在一个类上写了个方法,给个字符串类型的变量直接复制一些字符串的时候,字符串稍微长了一点,编译就会报了个字符串超出了限制范围的错误。

Combined length of user strings used by the program exceeds allowed limit. Try to decrease use of string literals.

很忧伤,没有什么解决问题的头绪。

以下仅贴图(网上的 和 我自己的代码),希望有大神路过帮助解答

网上搜索到的

 

原文地址:https://www.cnblogs.com/youler/p/10003233.html