摘要:
最近遇到一问题: 使用std::unique_ptr报错:memory:error invalid application of 'sizeof' to incomplete type '***' 排查后,不使用std::unique_ptr就ok。 使用的std::unique_ptr包装的类型是 阅读全文
摘要:
1. 请写出 BOOL flag 与“零值”比较的 if 语句 if ( flag ) if ( !flag ) 请写出 char *p 与“零值”比较的 if 语句 if (p == NULL) if (p != NULL) 2. 请写出 float x 与“零值”比较的 if 语句 const 阅读全文