下面程序的输出结果为( )。#include<iostream.h>class CStatic{public:CStatic() {val++;}static int val;};int CStatic::val=0;void main(){CSta

admin2009-01-15  26

问题 下面程序的输出结果为(    )。#include<iostream.h>class CStatic{public:CStatic() {val++;}static int val;};int CStatic::val=0;void main(){CStatic cs1;cout<<cs1.val<< "";CStatic cs2;CStatic cs3, cs4;cout<<cs  val<<end1;}

选项 A、14
B、24
C、34
D、54

答案1

解析
转载请注明原文地址:https://kaotiyun.com/show/DAkp777K
0

随机试题
最新回复(0)