StringBufferappend(char[],intint1,intint2)表示()A、向一个字符串追加字符数组,范围从数组的索引int1开始,到索引int2结束B、向一个字符串追加字符数组,范围从数组的索引int1开始,到索引int2-1结束C、向一个字符串追加字符数组,范围从数组的索引int1开始,长度为int2D、向一个字符串追加字符数组,范围从数组的索引int1开始,长度为int2-1
StringBufferappend(char[],intint1,intint2)表示()
- A、向一个字符串追加字符数组,范围从数组的索引int1开始,到索引int2结束
- B、向一个字符串追加字符数组,范围从数组的索引int1开始,到索引int2-1结束
- C、向一个字符串追加字符数组,范围从数组的索引int1开始,长度为int2
- D、向一个字符串追加字符数组,范围从数组的索引int1开始,长度为int2-1
相关考题:
以下与库函数strcpy(char *p, char *q)功能不相等的程序段是()。 A.strcpy1(char *p, char *q){ while ((*p++=*q++)!='\0')}B.strcpy2( char *p, char *q){ while((*p=*q)!='\0'){p++ q++}}C.strcpy3(char*p, char *q){ while (*p++=*q++)}D.strcpy4(char *p, char *q){ while(*p)*p++=*q++}
阅读下面程序段,则执行后输出的结果是#include "stdio.h"main(){ char fun(char,int);char a=′A′;int b=13;a=fun(a,b);putchar(a);}char fun(char a,int b){char k;k=a+b;return k;}A.AB.MC.ND.L
下面判断正确的是A.char*a="china";等价于char *a;*a="china";B.char str[5]={"china"};等价于char str[]={"china"};C.char*S="china";等价于char *S;S="china";D.char c[4]="abc",d[4]="abc";等价于char c[4]=d[4]="abc";
下列判断正确的是( )。A.char a="ABCD";等价于char*a:*a="ABCD";B.char str[10]={"ABCD"};等价于char str[10];str[]={"ABCD"};C.char*s="ABCD";等价于char s;*s="ABCD";D.char c[5]="ABCD",d[5]="ABCD";等价于char c[5]=d[5]="ABCD";
创建S表时,SNo使用CHAR(5)并且唯一,SName使用CHAR(30),Status使用CHAR(8),City使用CHAR(20)。请在下列用于创建表S的SQL语句空缺处填入正确的内容。CREATE TABLE S(SNo CHAR(5),SName CHAR(30),Status CHAR(8),City CHAR(20),______;
下列函数不能和函数voidprint(char)构成重载的是() A、intprint(int);B、voidprint(char,char);C、intprint(char);D、voidprint(int,int);
阅读下面程序: include void funl(char a,char b) { char c; c=a;a=b;b=C; } void f 阅读下面程序:include<iostream.h>void funl(char a,char b){char c;c=a;a=b;b=C;}void fun2(char a,char b){char c;c=a;a=b;b=c;}void fun3(char a,char b){char c;c=a;a=b;b=C;}void main(){char a,b;a='A';b='B';funl(a,b);cout<<a<<b;a='A';b='B';fun2(a,b);cout<<a<<b;a='A';b='B';fun3(a,b);cout<<a<<b;}则该程序的输出为【 】。
建立一个“职员”表,表中有5个字段:职员号、姓名、性别、年龄、部门。要求职员号属性的值唯一,并且不能为空值。建立该表的SQL语句可以是______。A.CREATE TABLE 职员(职员号 CHAR(6),姓名CHAR(8),; 性别CHAR(2),年龄INT(4),部门CHAR(12))B.CREATE TABLE职员(职员号CHAR(6)NULL,姓名CHAR(8),; 性别CHAR(2),年龄INT(4),部门CHAR(12))C.CREATE TABLE 职员(职员号CHAR(6)NOT NULL UNIQUE,; 姓名CHAR(8),性别CHAR(2),年龄INT(4),部门CHAR(12))D.CREATE TABLE职员(职员号CHAR(6)UNIQUE,姓名CHAR(8),: 性别CHAR(2),年龄INT(4),部门CHAR(12))
下列程序输出的结果是()。includesub1(char a,char b){char c:c=a:a=b:b=c; }sub2(char 下列程序输出的结果是( )。 #include<stdio.h> sub1(char a,char b) {char c:c=a:a=b:b=c; } sub2(char*a,char b) {char c:c=*a;”a=b;b=c;} sub3(char*a,char*b) {char c;c=*a;”a=*b;*b=c;} void main() { char a,b; a='A';b='B':sub1(a,b);putchar(a):putchar(b): a='A';b='B'; sub2(a,b);putchar(a);putchar(b); a='A';b='B'; sub3(a,b);putchar(a);putchar(b); putchar('\n'); }A.ABABABB.ABBBBAC.ABBABAD.ABABBA
下列程序的输出结果是______。 #include sub1(char a,char b) {char c; c=a;a=b;b=c;} sub2(char* a,char b) {char c; c=*a;*a=b;b=c;} sub3(char* a,char*b) {char c; c=*a;*a=*b;*b=c;} { char a,b; a='A' ;b='B'; sub3 (a, b) ;putchar (a) ;putchar (b); a='A';b='B';sub2(a,b);putchar(a);prtchar(b); a='A';b='B';sub1(a,b);putchar(a) ;putchar(b); }A.BABBABB.ABBBBAC.BABABAD.BAABBA
定义如下变量:char one_char,则语句cin>>one_char等价于C语言中的( )语句。A.printf(one_char);B.prinft("%c",one_char);C.scanf(one_char);D.scanf("%c", one_char);
下面判断正确的是( )。A.char *a="china";等价于char *a;*a="ghina";B.char str[5]={"china"};等价于char str[]={"china"};C.char*s="china";等价于char*s;s="china";D.charc[4]="abc",d[4]="abc";等价于char c[4]=d[4]="abc";
若某企业的数据库系统中有如下所示的员工关系和仓库关系,每个仓库可有多名员工,但只有一名负责人。员工关系(cmployee):仓库关系(warehouse):则创建仓库表结构的SQL语句为(58)。A.CREATE TABLE(employeeID CHAR(2)NOT NULL UNIQUE, name CHAR(30)NOT NULL, address CHAR(40), pricipallD CHAR(3));B.CREATE warehouse(warehouseD CHAR(2)PRIMARY KEY, name CHAR(30), address CHAR(40), pficipalID CHAR(3));C.CREATE TABLE warehouse(warehouselD CHAR(2)PRIMARY KEY, name CHAR(30)NOT NULL, address CHAR(40), pricipalID CHAR(3), FOREIGN KEY(priciPalID)REFERENCES employee(employeeID));D.CREATE TABLE warehouse(warehouselD CHAR(2), name CHAR(30)NOT NULL, address CHAR(40), pricipalID CHAR(3), PRIMARY KEY(warehouselD), FOREIGN KEY(employeeID)REFERENCES emplo
下列程序输出的结果是()。includesub1(char a,char b){char c;c=a;a=b;b=c:}sub2(char* 下列程序输出的结果是( )。 #include<stdio.h> sub1(char a,char b) {char c;c=a;a=b;b=c:} sub2(char*a,charb) {charc;c=*a;”a=b:b=c;} sub3(char*a,char*b) {char c;c=*a;”a=*b;*b=c:} void main() { char a,b; a='A';b='B';sub1(a,b);putchar(a);pA.ABABABB.ABBBBAC.ABBABAD.ABABBA
下列程序输出的结果是()。includeun1(char a,char b){char c;c=a;a=b;b=c;}fun2(char*a 下列程序输出的结果是( )。 #include<stdio.h> un1(char a,char b){char c;c=a;a=b;b=c;} fun2(char*a,char b){char c;c=*a;*a=b;b=c;} fun3(char*2,char*b){charc;c=*a;*a=*b;*b=c;} void main() { char a,b; a='A';b='B';funl(a,b);putchar(a);putchar(b);A.BABBABB.ABBBBAC.ABBABAD.ABABBA
某企业的数据库系统中有如下所示的员工关系和仓库关系,每个仓库可有多名员工,但只有一名负责人。员工关系(employee):仓库关系(warehouse):则创建仓库表结构的SQL语句为(58)。A.CREATE TABLE (employee ID CHAR(2)NOTNULL UNIQUE, name CHAR(30)NOT NULL, address CHAR(40), principal ID CHAR(3));B.CREATE warehouse(warehouse ID CHAR(2)PRIMARY KEY, name CHAR(30), address CHAR(40), principal ID CHAR(3));C.CREATE TABLE warehouse(warehouse ID CHAR(2)PRIMARY KEY, name CHAR(30)NOT NULL, address CHAR(40), principal ID CHAR(3), FOREIGN KEY(principal ID)REFERENCES employee(employee ID));D.CREATE TABIE warehouse(warehouse ID CHAR(2), name CHAR(30)NOT NULL, address CHAR(40), principal ID CHAR(3), PRIMARY REY(warehouse ID), FOREIGN KEY(employee ID)REFERENCES employee(employee ID));
下列程序输出的结果是()。includesubl(char a,char b) {char c;c=a;a=b;b=c; }sub2(cha 下列程序输出的结果是( )。 #include<stdio.h> subl(char a,char b) {char c;c=a;a=b;b=c; } sub2(char*a,char b) {char c;c=*a;*a=b;b=c;} sub3(char*a,char*b) { char c;c=*a;*a=*b;*b=c; } void main() { char a,b; a='A';b='B';subl(a,b);putchar(a);putchar(b); a='A';b='B';sub2(a,b);putchar(a);putchar(b); a='A';b='B';sub3(a,b);putchar(a);putchar(b); putchar('\n'); }A.BABBABB.ABBBBAC.ABBABAD.ABABBA
下列程序输出的结果是( )。 include fun1(char a,char b) {char c;c=a;a=b;b=c;} fun2 下列程序输出的结果是( )。 #include<stdio.h> fun1(char a,char b) {char c;c=a;a=b;b=c;} fun2 (char*a,char b) {char c;c=*a;*a=b;b=c;} fun3(char*a,char*b) {char c;c=*a;*a=*b;*b=c;} void main() { char a,b; a='A';b='B'; fun1 (a,b);putchar(a);putchar(b); a='A';b='B'; fun2 (a,b);putchar(a);putchar(b); a='A';b='B'; fun3 (a,b);putchar(a);putchar(b); putchar('\n'); }A.BABBABB.ABBBBAC.ABBABAD.ABABBA
建立一个学生信息表student,要求它由学号sno,姓名sname,性别sex,年龄age,4个属性组成,其学号属性惟一,学号、姓名字段不能为空。下列语句正确的是A.CREATE TABLE student (sno char(5)NOT NULL sname char(8)NOT NULL sex char age int);B.CREATE TABLE student (sno char(5)NOT NULL UNIQUE sname char(8) sex char age int);C.CREATE TABLE (sno char(5)NOT NULL UNIQUE sname char(8)NOT NULL sex char age int);D.CREATE TABLE student (sno char(5)NOT NULL UNIQUE sname char(8)NOT NULL sex char age int);
定义如下变量:char one_char;,则语句cout<<one_char;显示结果相当于C语言中的( )语句。A.printf(one_char);B.prinff("%c",one_char);C.scanf(one_char);D.scanf("%c",one_char);
Which two valid declarations of a char? ()A、 Char ch = “a”;B、 Char ch = ‘“‘ ‘;C、 Char ch = ‘cafe‘;D、 Char ch = “cafe”;E、 Char ch = ‘“ucafe‘;F、 Char ch = ‘“u10100‘;G、 Char ch = (char) true;
下面的说明中,错误的是()。A、char a[10]= “china”;B、char a[10], *p=a; p=“china”;C、char *a; a=“china”;D、char a[10], *p; p=a=“china”;
下列数组的定义不合法的是()A、char c[][]=new char[2][4]B、char c[][]=new char[2][]C、char [][]c=new char[][3]D、int []a[] = new int[5][5]
下列选项中,能有效声明一个字符的语句有()。A、char ch=’a’;B、char ch=’/’’;C、char ch=’cafe’;D、char ch="cafe";E、char ch=’/ucafe’;F、char ch=’/u10100’;G、char ch=(char)true;
The 8859-1 character code for the uppercase letter A is 65. Which of these code fragments declare and initialize a variable of type char with this value?() A、char ch = 65;B、char ch = ’¥65’;C、char ch = ’¥0041’;D、char ch = ’A’;E、char ch = "A";
以后哪项是合法的数组声明?()A、char[10]sB、char s[ ]C、char sD、char s [10]