C语言头文件相关,小白求救大佬!急!

qq_45730227 2019-10-16 11:47:37
已经给出一个含有一段英文的TXT文档,键盘输入该TXT名打开并读取,遇到 , . ? ! 四个标点符号时段落换行,遇到C语言32个关键词(比如:char int goto等)时换行并且关键词单独一行,但是在关键词后面如果跟着上面的标点就关键词及标点在一行(比如:goto, ),请写一个头文件包涵有关关键词以及标点的相关函数,并且读取时将每个单词变成字符串存放在数组中。 最后输出:换行后的文档 以及总行数。 TXT文档: C allows the programmer to write directly to memory unlike most of other programming languages. Key constructs in C such as pointers and arrays are designed to structure and manipulate memory in a machine-independent fashion.Thirty two Keywords in C are also called as reserved words such as
char, int, float, goto and void. C gives control over the memory layout of data structures! Dynamic
memory allocation in C is under the control of the programmer unlike languages like Java and Perl
that shield the programmer from memory allocation and pointers.This can be useful since dealing
with memory allocation when building a high-level program is a highly error-prone process. C
provides a uniform interface when dealing with low-level code such as the part of the OS that
controls a device. Do these capabilities exist in most other languages? Answer is no.
...全文
10 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

69,373

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧