作业帮 > 综合 > 作业

c语言作业 拜托了打开一个名为“in.txt”的文件 里面内容如下:one plus onezero times two

来源:学生作业帮 编辑:作业帮 分类:综合作业 时间:2024/05/09 06:07:36
c语言作业 拜托了
打开一个名为“in.txt”的文件 里面内容如下:
one plus one
zero times two
two times zero
two times nineteen
one plus two plus three plus four minus sixteen
five times five times five
five times five divided-by ten
zero minus one minus two minus three minus four
zero divided-by one
fifteen
然后算出答案
再用英文表示出来
two
zero
zero
thirty eight
negative six
125
two
negative ten
zero
fifteen
p.s.超过20的数字,不需要用英文表示结果.
ini.txt放在C盘根目录下,当然也可以改路径,只需要改file_path的值即可.
有问题qq522161657.
#include
#include
#define BUF_SIZE 400
#define WORD_SIZE 40
//
/**/
PrintNumber(result);
printf("\n");
} /* end of while(!feof(fp)) */
fclose(fp);
}
/*---------------------------------------------------*/
getch();
}