网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
以下程序的输出结果是()。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 **n; n=a; func(n); system("PAUSE"); return 0; }
A.为空
B.MORNING
C.AFTERNOON
D.EVENING
参考答案
更多 “ 以下程序的输出结果是()。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 **n; n=a; func(n); system("PAUSE"); return 0; }A.为空B.MORNINGC.AFTERNOOND.EVENING ” 相关考题
考题
以下程序的执行结果是______ includevoid func(int); void main(){ int k=4 func(k)
以下程序的执行结果是______include<iostream.h>void func(int);void main(){int k=4func(k) ;func(k) :cout<<end1;}void func(int a){static int m=0;m+=a;cout<<m<<" ";}
考题
以下程序的输出结果是【】。 includevoid main(){ char cha[3][5]={"AAAA","BBBB","CC
以下程序的输出结果是【 】。include<iostream. h>void main(){char cha[3][5]={"AAAA","BBBB","CC"];cout<<cha[1]<<end1;}
考题
以下程序的输出结果是()。includevoid func(char**m){++m:cout
以下程序的输出结果是( )。 #include<iostream.h> void func(char**m) { ++m: cout<<*m<<end1; } void main() { static char*a[]={"MORNING","AFTERTOON","EVENING"}; char**n: n=a; func(n); }A.为空B.MORNINGC.AFTERTOOND.EVENING
考题
以下程序的输出结果是()。includevoid func(char**m) {++m:cout
以下程序的输出结果是( )。 #include<iostream.h> void func(char**m) { ++m: cout<<*m<<endl; } void main() { static char*a[]={"MORNING","AFTERTOON","EVENING"}; char**n; n=a: func(n); }A.为空B.MORNINGC.AFTERTOOND.EVENING
考题
以下程序的执行结果是【】。 include include include int ma
以下程序的执行结果是【 】。include <iostream.h>include <fstream.h>include <stdlib.h>int main(){fstream outfile, infile;outfile.open("D:\\text.dat",ios::out);if(!outfile){cout<<"text.dat can't open"<<end1
考题
以下程序的执行结果是_______。 include include include void
以下程序的执行结果是_______。include<iostream.h>include<fstream.h>include<stdlib.h>void main(){char ch:fstream file:file.open("abc.dat",ios::out1ios::inlios::binary);if(! file){cout<<“abc.dat文件不能打开”<<endl:abort
考题
下列程序的输出结果是______。includeinclude using namespace std;void
下列程序的输出结果是______。include <iostream.h>include <cstring.h>using namespace std;void fun(const char*s,char C) {c=s[strlen (s)/2];}int main {){char str [] ="ABCDE";char ch=str[1];fun(str,sh);cout<<Ch;return 0;}
考题
3、以下程序的输出是 。(递归) #include<iostream> using namespace std; void func(char c) { cout << c; if(c < ‘5’) func(c+1); cout<<c<<endl; } void main() { func(‘0’); }
考题
C++中引用输入输出头文件语句是:A.#include <stdlib>B.#include <iostream>C.#include <stdlib.h>D.#include <stream.h>
热门标签
最新试卷