A、求子串 Seeking substring
B、联接 Concatenation
C、匹配 Matching
D、求串长 Seeking length
若串S1=‘ABCDEFG’, S2=‘9898’ ,S3=‘###’,S4=‘012345’,执行 concat(replace(S1,substr(S1,length(S2),length(S3)),S3),substr(S4,index(S2,‘8’),length(S2))) 注意:substr(S,i,j)是对字符串S的下标为i开始取j个字符,这里的下标是从0开始的(单选) If the string S1 = 'ABCDEFG', S2 = '9898', S3 = '###', S4 = '012345', execute concat (replace (S1, substr (S1, length (S2), length (S3)), S3), substr (S4, index (S2, '8'), length (S2))) Note substr (S, i, j) is the operation to take string S’s j characters from subscript i. Subscript here is starting from 0.(There is only one correct answer)
A、ABC###G0123
B、ABCD###2345
C、ABCD###1234
D、ABC###G2345
A、空串就是空白串“Empty string” is blank string.
B、空串是任意字符串的子串 Empty string is a substring of arbitrary string.
C、串只可以采用顺序存储,不可以采用链式存储 String only can be stored in sequential method and cannot be stored in linked method.
D、在C++标准中,char S[M]最多能表示长度为M的字符串 In C ++ standards, char S[M] can represent up to a string of length M.
A、串是字符的有限序列 String is a finite sequence of characters.
B、模式匹配是串的一种重要运算 Pattern matching is an important operation.
C、串是一种数据对象和操作都特殊的线性表 String is a linear list whose data objects and operations both special
D、空串是由空格构成的串 Empty string is a string consisting of spaces.
为了保护您的账号安全,请在“简答题”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!