题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-10-21 16:15:44

[单项选择]以下程序的输出结果是( )。
#include<iostream>
using namespace std;
void fun(char**q)

++q;
cout<<*q<<end1;

main( )

static char*s[]="HI","HELL0","TEST";
char**p;
p=s;
fun(p);
system("PAUSE");
return 0;

A. 为空
B. HI
C. HELL0
D. TEST

更多"以下程序的输出结果是( )。 #include<iostream>"的相关试题:

[单项选择]以下程序的输出结果是( )。
#include<iostream>
using namespace std;
void fun(char**q)

++q;
cout<<*q<<end1;

main( )

static char*s[]="HI","HELL0","TEST";
char**p;
p=s;
fun(p);
system("PAUSE");
return 0;

A. 为空
B. HI
C. HELL0
D. TEST
[单项选择]下列程序的输出结果是 #include <iostream> using namespace std; int main ( ) { char a[] = "Hello,World": char*ptr = a; while (*ptr) { if(*ptr>= ’a’ &&*ptr <=’z’ cout<<char{*ptr+’A’-’a’); else cout<<*ptr; ptr++; } return 0; }
A. HELL WORLD
B. Hello, World
C. hELLO, wORLD
D. hello, world
[单项选择]下面程序输出的结果是( )。 #include<iostream> using namespace std; int test(int n1,int n2) {return n1 +n2;} float test (int f1,float f2){return f1-f2;} float test(float x,float y){return(x+y)/2;} float test(float x,int y){return(x+y)*2;} void main( ){ int a1=10; float a2=2.5f; cout<<test(a1,a2); }
A. 12.5
B. 7.5
C. 6.25
D. 25
[单项选择]如下程序运行时的输出结果是
#include<iostream>
using namespace std;
class ONE
int c;
public:
ONE( ):c(0)eout<<1;
ONE(int n):C(n)cout<<2;

class TW0
ONE onel;
ONE one2;
public:
TWO(int m):one2(m)eout<<3;

int main( )
TWO t(4);
return 0;

A. 3
B. 23
C. 123
D. 213
[单项选择]下面程序的输出结果是( )。
#include<iostream>
Using namespace std:
Class Base
public:
Base(int x=0)count<<x;


Class Derived:public Base
public:Derved(int x=0count<<x;

private:
Base val;

int mina( )
Derived d(1);
return 0;

A. 0
B. 1
C. 01
D. 001
[单项选择]下面程序的输出结果是( )。
#include<iostream>
using namespace std;
template<class T>
T max(T x,T y)
return(x>= y x:y);
template<class T>
T max(T x,T y,T z)

T t; t=(x>=y x:y);
return(t>=z t:z);

void main( ) int x = 10,y=18,maxi;
float a = 1.2,b = 3.2,c = 2,max2;
max1 = max(x,(int)c);
max2 = max(a,b,(float)y);
cout<<maxi<<endl;
cout<<max2<<endl;

A. 18
B. 10
C. 10
D. 编译出错
[填空题]下列程序的输出结果是 【8】
#include<iostream>
using namespace std;
int main( )

int num=500;
int &ref=num;
ref +=100;
cout<<num<<end1;
return 0;

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码