[Error] cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string
[Error] cannot pass objects of non-trivially-copyable type ‘std::string {aka class std::basic_string}’ through ‘…’原因使用了printf作为输出字符串的方式解决方法cout >> "....";