文件名称:string_process
介绍说明--下载内容来自于网络,使用问题请自行百度
大学作业,用GCC编写的C语言程序。string处理系统。用于对string赋值,string合并和其他功能。如输入:
set one \"The cat\"
set two \"sat on the mat\"
set sentence one + SPACE + two
append sentence \" by itself.\"
print sentence
printwordcount sentence
printwords sentence
printlength sentence
list
exit
得到如下结果:
The cat sat on the mat by itself.
Wordcount is: 8
Words are:
The
cat
sat
on
the
mat
by
itself.
Length is: 33
Identifier list (3):
one: \"The cat\"
two: \"sat on the mat\"
sentence: \"The cat sat on the mat by itself.\"
-University of operations, prepared by the GCC using C language program. String processing system. Assignment for the right string, string mergers and other functions. If input : set one, "The cat" set two "sat on the mat" set sent ence one SPACE two append sentence "by itself." print print sentence printwordcount sentence words sentence printlength sentence exit list The results are as follows : The cat sat on the mat by itself. Wordcount is : 8 Words are : The cat sat on the mat by itself. Length is : 33 Identifier list (3) : one : "The cat" two : "sat on the mat" sentence : "The cat sat on the mat by itself."
set one \"The cat\"
set two \"sat on the mat\"
set sentence one + SPACE + two
append sentence \" by itself.\"
print sentence
printwordcount sentence
printwords sentence
printlength sentence
list
exit
得到如下结果:
The cat sat on the mat by itself.
Wordcount is: 8
Words are:
The
cat
sat
on
the
mat
by
itself.
Length is: 33
Identifier list (3):
one: \"The cat\"
two: \"sat on the mat\"
sentence: \"The cat sat on the mat by itself.\"
-University of operations, prepared by the GCC using C language program. String processing system. Assignment for the right string, string mergers and other functions. If input : set one, "The cat" set two "sat on the mat" set sent ence one SPACE two append sentence "by itself." print print sentence printwordcount sentence words sentence printlength sentence exit list The results are as follows : The cat sat on the mat by itself. Wordcount is : 8 Words are : The cat sat on the mat by itself. Length is : 33 Identifier list (3) : one : "The cat" two : "sat on the mat" sentence : "The cat sat on the mat by itself."
(系统自动生成,下载前可以参看下载内容)
下载文件列表
string.c
www.dssz.com.txt
www.dssz.com.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
