网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
在下列# include命令中,正确的一条是 ( )
A.# include [string.h]
B.# include {math.h}
C.# include(stdio.h)
D.# include<stdio.h>
参考答案
更多 “ 在下列# include命令中,正确的一条是 ( )A.# include [string.h]B.# include {math.h}C.# include(stdio.h)D.# include<stdio.h> ” 相关考题
考题
下列程序的输出结果是______。 include include using namespace std; voi
下列程序的输出结果是______。include<iostream.h>include<string.h>using namespace std;void fun(const char*s,char C) {c=s[strlen(s)/2];}int main(){char str[]="ABCDE";char ch=str[1];fun(str,ch);cout<<ch;return 0;}
考题
为使*p=20,下面正确的程序是()A. include main( ) { int a=10,b=20,*p= printf
为使*p=20,下面正确的程序是 ( )A.# include<stdio.h> main( ) { int a=10,b=20,*p=&b; printf("%d\t%d\n",p,*p); } *p)B.# include<stdio.h> main( ) { int a=10,b=20,*p=b; printf("%d\t\%d\n",p,*p) }C.# include<stdio.h> main( ) { int a=10,b=20,*p; p=&a; p + +; printf("%d\t\%d\n",p,*p);} }D.# include<stdio.h> main( ) { int a=10,b=20,*p; *p=20; printf("%d\t\%d\n",p,*p); }
考题
设已执行预编译命令include,以下程序段的输出结果是char s[]="an apple";printf("%d\
设已执行预编译命令#include<string.h>,以下程序段的输出结果是 char s[]=" an apple" ; printf("%d\n",strlen(s));A.7B.8C.9D.10
考题
以下程序的输出结果是【】。 include include void main 0 { char s[50]; st
以下程序的输出结果是【 】。include<iostream.h>include <string.h>void main 0 {char s[50];strcpy(s[O], "No" );strcpy(s[1], "123" );strcpy (s[2], "23456" );cout<<s;}
考题
下列程序的输出结果是【】。 include include void main(){ char b[30]; str
下列程序的输出结果是【 】。include<iostream.h>include<string.h>void main(){char b[30];strcpy(b[0],"XY");strcpy(b[1],"YZW");strcpy(b[2],"ZXY");cout<<b<<end1;}
考题
下列关于include命令的叙述中,错误的是()。
A.#include命令中,文件名可以用双引号或尖括号括起来B.一个被包含文件中又可以包含另一个被包含文件C.一个#include命令中可以指定多个被包含文件D.一个#include命令中只能指定一个被包含文件
考题
下列程序的运行结果是()。 include include main() {char*s1="abDuj"; char
下列程序的运行结果是( )。#include<stdio.h>#include<string.h>main(){ char*s1="abDuj";char*s2="ABdUG";int t;t=strcmp(s1,s2) ;printf("%d",t);}A.正数B.负数C.零D.不确定的值
考题
下列程序的运行结果为【】。 include include {int a; char b[10]; double c;};
下列程序的运行结果为【 】。include<stdio.h>include<string.h>{ int a; char b[10]; double c; };void f (struct A *t);main(){ struct A a={1001,"ZhangDa",1098.0};f(a) ; printf("%d,%s,%6.lf\n",a.a,a.b,a.C);}void f(struct A*t){ strcpy(t->b, "ChangRong");}
考题
以下程序的运行结果是______。 include include template class TA
以下程序的运行结果是______。include<iostream.h>include<math.h>template<class T>class TAdd//定义类模板TAdd,T为类型{Tx,y;public:TAdd (Ta,Tb) {x=a,y=b;) //构造函数Tadd() { retum x+y;}//成员函数};void main( ){TAdd<int>A (5,6);
考题
下列程序的输出结果是( )。 include include"string.h" void main() {char a[]="He
下列程序的输出结果是( )。 #include<iostream.h> #include"string.h" void main() {char a[]="Hello Test",b[]="Test"; strcpy(a,b); cout<<a<<end1; }A.HelloB.TestC.Hello TestD.Hello Test HelloTest
考题
下列4个程序中,完全正确的是()。A.include main(); (/*programming*/ printf("programm
下列4个程序中,完全正确的是( )。A.#include<stdio.h> main(); (/*programming*/ printf("programming!\n");}B.# include<stdio.h> main() {/*/programming/*/ printf("programming!\n");}C.#include<stdio.h> main() {/*/programming*/*/ printf("programming!\n");)D.include<stdio.h> main() {/*programming*/ printf("programming!\n");}
考题
下面程序的运行结果是 ( ) include include main( ) { char * a="
下面程序的运行结果是 ( ) # include<stdio.h> # include<string.h> main( ) { char * a="AbcdEf",* b="aBcD" a + +;b + +; printf("%d\n",strcmp(a,b)); }A.0B.负数C.正数D.无确定值
考题
下面程序的输出结果是 ( ) include include { char * p1="abc" , *
下面程序的输出结果是 ( ) # include<stdio.h> # include<string.h> { char * p1="abc" , * p2=" ABC ",str[50]="xyz"; strcpy(str+2.strcat (pi,p2)); printf("%s\n",str);}A.xyzabcABB.zabcABCC.yzabcABCD.xycbcABC
考题
以下程序 include include main() { char*p1="abc",*p2="ABC",str[50]="xy
以下程序 #include<stdio.h> #include<string.h> main() { char*p1="abc",*p2="ABC",str[50]="xyz"; strcpy(ar+2,strcat(p1,p2)); printf("%s\n",str); } 的输出是______。A.xyzabcABCB.zabeABCC.yzabcABCD.xyabcABC
考题
有以下程序:include include main(){char *p[10]={"abc","aabdfg","dcdbe"
有以下程序: #include <stdio.h> #include <string.h> main() { char *p[10]={"abc","aabdfg","dcdbe","abbd","cd"}; printf("%d\n",strlen(p[4])); } 执行后的输出结果是( )。A.2B.3C.4D.5
考题
设已执行预编译命令include,以下程序段的输出结果是()。char s[]="an apple";printf("
设已执行预编译命令#include<string.h>,以下程序段的输出结果是( )。 char s[]=" an apple" ; printf(" %d\n" ,strlen(s));A.7B.8C.9D.10
考题
在当前页面中包含a.htm的正确语句是() A、 %@ include=”a.htm”%B、 jsp:include file=”a.htm”/ C、 %@ include page=”a.htm”% D、 %@ include file=”a.htm”%
考题
如果在用户的程序中要使用C库函数中的数学函数时,应在该源文件中使用的include命令是()A、#include〈string.h〉B、#include〈math.h〉C、#include〈stdio.h〉D、#include〈ctype.h〉
考题
在J2EE中,对于以下的include指令和include动作,书写正确的是() A、jsp:include page=http://localhost:/8080/my.jsp/ B、%@ include file=http://localhost:/8080/my.jsp/C、jsp:include file=http://localhost:/8080/my.jsp/ D、%@ include page=http://localhost:/8080/my.jsp/
考题
单选题下列#include命令中,正确的是()A
#inclue[string.h]B
#include{string.h}C
#include(string.h)D
#include
热门标签
最新试卷