fprintf(file,str.c_ctr());编译报错error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
一拍脑袋fprintf(file,str.c_ctr(),0); 编译通过,原理不知道
fprintf(file,str.c_ctr());编译报错error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security]
一拍脑袋fprintf(file,str.c_ctr(),0); 编译通过,原理不知道