以下程序的执行结果是 【15】 。
#include<iostream. h>
class Sample
public:
int x:
int y;
void disp( )
cout<<"x="<<x<<",y="<<y<<end1;
;
void main( )
int Sample:: ** pc;
Sample s;
pc=& Sample: :x;
s.*pc=10;
pc:=&Sample: :y;
s.*pc=20;
s.disp( );
题库:计算机等级考试
类型:填空题
时间:2017-07-03 15:52:10
免费下载:《填空》Word试卷
以下程序的执行结果是 【15】 。
#include<iostream. h>
class Sample
public:
int x:
int y;
void disp( )
cout<<"x="<<x<<",y="<<y<<end1;
;
void main( )
int Sample:: ** pc;
Sample s;
pc=& Sample: :x;
s.*pc=10;
pc:=&Sample: :y;
s.*pc=20;
s.disp( );
本题关键词:行为结果,H型结构,行为结果评价,竣工结算程序,行政诉讼程序,结果,H型组织结构,执行过程组,程序,结果均;