#include <stdio.h>
#include <stdlib.h> //为了调用exit()
#include <string.h> //为strcpy()和strcat()函数提供原型
#define LEN 40
int main(int argc, char *argv[])
{
FILE *in, *out; //声明两个FILE指针
int ch;
char name[LEN]; //用于存储输入文件名
int count = 0;
//检查命令行参数
if(argc < 2)
{
fprintf(stderr, "Usage: %s filename.\n", argv[0]);
exit(1);
}
//实现输入
#include <stdlib.h> //为了调用exit()
#include <string.h> //为strcpy()和strcat()函数提供原型
#define LEN 40
int main(int argc, char *argv[])
{
FILE *in, *out; //声明两个FILE指针
int ch;
char name[LEN]; //用于存储输入文件名
int count = 0;
//检查命令行参数
if(argc < 2)
{
fprintf(stderr, "Usage: %s filename.\n", argv[0]);
exit(1);
}
//实现输入