c++使用了未初始化的局部变量
答案:1 悬赏:10
解决时间 2021-10-13 16:06
- 提问者网友:
- 2021-10-12 21:22
c++使用了未初始化的局部变量
最佳答案
- 二级知识专家网友:梦中风几里
- 2021-10-12 22:22
...................................................
if(!(f_pic=fopen(pic_name,"rb"))) {
printf("cannot open the picture %s!",pic_name);
return;
}
if(!(f_file=fopen(file_name,"rb"))) {
printf("cannot open the picture %s!",file_name);
return;
}
if(!(f_file=fopen(finish_name,"wb+"))) { // 这里的FILE指针应该是f_finish,而不是f_file
printf("cannot open the file %s !",finish_name);
return;
}
.................................................
if(!(f_pic=fopen(pic_name,"rb"))) {
printf("cannot open the picture %s!",pic_name);
return;
}
if(!(f_file=fopen(file_name,"rb"))) {
printf("cannot open the picture %s!",file_name);
return;
}
if(!(f_file=fopen(finish_name,"wb+"))) { // 这里的FILE指针应该是f_finish,而不是f_file
printf("cannot open the file %s !",finish_name);
return;
}
.................................................
我要举报
如以上问答内容为低俗、色情、不良、暴力、侵权、涉及违法等信息,可以点下面链接进行举报!
大家都在看
推荐资讯