有以下程序: #include <iostream> #include <strinq> using namespace std; int main() { char a[] = {'a'/'b'/'c'/'d','e','f','g','h','/0'}; int i j; i=sizeof(A) ; j=strlen(A) ; cout<<i<<","<<j<<end1; return 0; } 程序运行后的结果是( )。
A.9,9
B.8,9
C.1,8
D.9,8
[单选题]有以下程序:includeincludeusing namespace std; class point{private:double有以下程序: #include<iostream> #include<math> using namespace std; class point { private: double x; double y; public: point(double a,double B) { x=a; y=b; } friend double distance (point a
[单选题]有如下程序:#include#includeusing namespace std;int main(){cout.fill('*');cout<return 0;}执行这个程序的输出结果是A. . 123*OKB. . 123*OK**C. . *123OKD. . *123**OK
[单选题]有如下程序:includeincludeusing namespace std;class MyString{public:My有如下程序: #include<cstring> #include<iostream> using namespace std; class MyString{ public: MyString(const char * s); ~MyString( ){delete[ ]data;} protected: unsigned len; char * data; }; M
[单选题]有如下程序:includeincludeusing namespace std;class TestClass{public;T有如下程序: #include<iostream> #include<iomanip> using namespace std; class TestClass{ public; TestClass (){cout<<'A';} TestClass(char C){cout<<c;) ~TestClass (){cout<<'B';} }; int main()
[单选题]有如下程序:includeincludeusing namespace std;int main( ){int S[ ]={12有如下程序: #include<iostream> #include<iomanip> using namespace std; int main( ){ int S[ ]={123,234}; cout<<right<<setfill('*')<<setw(6); for(int i=0;i<2;i++){COUt<<s[i]<<endl;} return 0;
[单选题]有如下程序:includeincludeusing namespace std;class BASE{char c;public有如下程序: #include<iostream>#include<iosream> using namespace std; class BASE{ char c; public; BASE(char n):c(n){} virtual ~ BASE(){cout<<c;} }; class DERIVED; public BASE{ char c; public:
[单选题]有下列的程序:includeincludeusing namespace std;class MyString{pub有下列的程序: #include<cstring.h> #include<iostream.h> using namespace std; class MyString { public: MyString(const char*s); ~MyString()<delete[]data;} protected: unsigned len; char*data; };A.构造函数的
[单选题]以下程序的输出结果是()。includeincludeusing namespace std;void func(cha以下程序的输出结果是( )。 #include<iostream> #include<stdlib> using namespace std; void func(char **m) { ++m; cout<<*m<<endl; } main() { static char *a[]={"MORNING","AFTERNOON","EVENING"); char *
[单选题]( 27 )有如下程序#include#includeusing namespace std;class MyClass{public:MyClass( ){ cout<<'A'; }MyClass(char c){ cout<~MyClass( ){ cout<<'B'; }};int main( ){MyClass p1,*p2;p2=new MyClass('X');delete p2 ;return 0;}执行这个程序屏幕上将显示输出A. ) A
[单选题]( 26 )有如下程序#include#includeusing namespace std;int main( ){cout<<SETPRECISION(3)<<FIXED<<SETFILL('*')<<SETW(8);cout<<12.345<<___________<<34.567;return 0;}若程序的输出是:**12.345**34.567则程序中下划线处遗漏的操作符是A. ) setprec