×

substring index string str

数据结构,串.在这两个题里Substring和Index这俩具体怎么算?instructor这个单词什么意思

admin admin 发表于2022-07-13 17:01:50 浏览77 评论0

抢沙发发表评论

数据结构,串.在这两个题里Substring和Index这俩具体怎么算

这取决于出价是从0计算还是从1计算出来:

instructor这个单词什么意思


instructor
instruct 教育,指导+-or者
n
One who instructs; a teacher.
教员;教师
A college or university teacher who ranks below an assistant professor.
大学讲师学院或大学中级别低于副教授的教师
-string

函数strcmp(“Int“,“int“))的返回值为(


strcmp作用是比较两个字符串
一般形式:strcmp(字符串1,字符串2)
说明:
当s1《s2时,返回值《0
当s1=s2时,返回值=0
当s1》s2时,返回值》0
即:两个字符串自左向右逐个字符相比(按ascii值大小相比较),直到出现不同的字符或遇’\0’为止。如:“a“《“b“
“a“》“a“
“computer“》“compare“
而在ascii
值中i《i
所以返回的值-1
-str