如何写精华回答,获更多曝光?
 发布
 
int ret = -1;
if (fd_log != nullptr)
	return 0-1;
if ((fd_log = fopen(LOG_FILE, "a+")) == nullptr) {
	printf("open file failed!\n");
} else {
	printf("open file successed!\n");
    ret = 0;
}
return ret;在应用中写了这样一段nativec++代码,LOG_FILE的文件已经存在。实际调试过程中发现fopen操作无法正常运行,清幽有没有解决方案?