• 2022-05-29
    s和s2的值分别是什么?string s;int main(){string s2;
  • 解答:[br][/br]s和s2的值均为空字符串。

    内容

    • 0

      以下要输出“hello,world!”正确的是? A: String s=String.format("%1s%2s","hello","world");System.out.println(s); B: String s=String.format("%1$s,%2$s","hello","world");System.out.println(s); C: String s=String.format("%s,%s","hello","world");System.out.println(s); D: String s=String.format("%1s,%2s","hello","world");System.out.println(s);

    • 1

      设s="abcd",s1="123",则执行语句s2=InsStr(s,2,s1)后,s2=()

    • 2

      设有以下定义,则数组s1和s2()。char s1[]={ S ,t, r ,i,n, g};char s2[]= String;

    • 3

      设字符串S1=“ABCDEFG”,S2=“PQRST”,则运算:S= Concat(Substr(S1,1,LEN(S2)),Substr(S1,LEN(S2),2));后的串值为

    • 4

      设字符串S1= “ABCDEF”,S2= “PQRS”,则运算S=CONCAT(SUB(S1,2,LEN(S2)),SUB(S1,LEN(S2),2))后的串值为