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

admin2009-01-15  27

问题 下面程序的输出结果为(    )。#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://jikaoti.com/ti/itd0FFFM
0

最新回复(0)