[Error] cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string
Error string of Cannot type Class Non Basic
2023-09-14 09:13:18 时间
[Error] cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...'
1. 报错
[Error] cannot pass objects of non-trivially-copyable type 'std::string {aka class std::basic_string<char>}' through '...'
2. 原因
不应该使用printf
输出一个String
类型的字符串
3.解决办法
使用cout << str
4.注
同样的问题有:
- 使用
scanf
【c语言】输入string
【c++】的对象。这个也会引起程序的崩溃
相关文章
- ORA-00485: DIAG process terminated with error string ORACLE 报错 故障修复 远程处理
- ORA-00700: soft internal error, arguments: [string], [string], [string], [string], [string], [string], [string], [string], [string], [string], [string], [string] ORACLE 报错 故障修复 远程处理
- ORA-01689: syntax error in clause “string” of string ORACLE 报错 故障修复 远程处理
- ORA-19673: error during proxy copy of file string ORACLE 报错 故障修复 远程处理
- ORA-19853: error preparing auxiliary instance string (error string) ORACLE 报错 故障修复 远程处理
- ORA-27602: Failure to publish network status information, cell library error code [string] ORACLE 报错 故障修复 远程处理
- ORA-27619: Smart I/O failed because of an internal error when determining the time zone file version. Error code “string” ORACLE 报错 故障修复 远程处理
- ORA-29336: Internal error [string] [string] from DBMS_PLUGTS ORACLE 报错 故障修复 远程处理
- ORA-29959: error in the execution of the string routine for one or more of the index partitions ORACLE 报错 故障修复 远程处理
- ORA-30997: XSL processing of XML failed with error LPX-string ORACLE 报错 故障修复 远程处理
- ORA-31197: Error in processing file string ORACLE 报错 故障修复 远程处理
- ORA-38900: missing mandatory column “string” of error log table “string” ORACLE 报错 故障修复 远程处理
- ORA-39103: Timeout before worker process string finished initialization. Worker error: ORACLE 报错 故障修复 远程处理
- ORA-47043: error deleting Identity string for Factor string, string ORACLE 报错 故障修复 远程处理
- ORA-49451: Archive file structure error [string] [string] ORACLE 报错 故障修复 远程处理
- ORA-49601: syntax error: found “string”: expecting one of: “string” etc.. ORACLE 报错 故障修复 远程处理
- ORA-00206: error in writing (block string, # blocks string) of control file ORACLE 报错 故障修复 远程处理
- ORA-00255: error archiving log string of thread string, sequence # string ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-010490; Symbol: ER_NDB_SLAVE_ERROR_IN_UPDATE_CREATE_INFO; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-01689: syntax error in clause “string” of string ORACLE 报错 故障修复 远程处理
- ORA-07251: spcre: semget error, could not allocate any semaphores. ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-012005; Symbol: ER_IB_MSG_180; SQLSTATE: HY000 报错 故障修复 远程处理
- ORA-09874: TASDEF_READ: read error, unable to read tasdef@.dbf file. ORACLE 报错 故障修复 远程处理
- ORA-13237: internal error during R-tree concurrent updates: [string] ORACLE 报错 故障修复 远程处理
- ORA-16735: error executing DBMS_LOGSTDBY.UNSKIP_ERROR procedure ORACLE 报错 故障修复 远程处理
- ORA-17628: Oracle error string returned by remote Oracle server ORACLE 报错 故障修复 远程处理
- MySQL Error number: MY-013078; Symbol: ER_IB_MSG_1253; SQLSTATE: HY000 报错 故障修复 远程处理
- MySQL Error number: MY-013114; Symbol: ER_SERVER_MASTER_FATAL_ERROR_READING_BINLOG; SQLSTATE: HY000 报错 故障修复 远程处理