|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
编译运行提示第17行有问题,没明白到底事哪儿的问题
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>
- static void usage(int num,const char *str)
- {
- if(num !=2)
- {
- fprintf(stderr,"usage: %s fqFile\n",str);
- exit(0);
- }
- }
- static void openFile(const char *fqflie)
- {
- FILE *fq;
- if((fq=fopen(fqfile,"r")) == NULL)
- {
- perror("fopen");
- exit(1);
- }
- fprintf(stdout,"fq file <%s> open suceed!\n",fqflie);
- fclose(fq);
- }
- int main(int argc,const char *argv[])
- {
- usage(argc,argv[0]);
- openFile(argv[1]);
- exit(0);
- }
复制代码
拼写错误
第14行和22行写的是fqflie ,第17行写的是fqfile
|
-
错误信息和程序
|