写出下面程序执行后的运行结果。 #include using namespace std;void main____{char*p="abcdefgh",*r;long * q;q = ____p;q++;r = ____q;cout << r;}
查看答案
读程序写运行结果。 #include using namespace std;template < class T>void f____ {int k;T t;for ____{k = i;for ____if ____ k=j;t = a[i], a[i] = a[k], a[k] = t;}}void main____{double d[5] = { 12.3, 4.5, -23.4, -90.4, 0 };char a[5] = { 'B', 'F', 'A', 'X', 'E' };f____;f____;for ____cout << d[i] << "..." << a[i] << endl;}
写出下面程序执行后的运行结果。 #include #include using namespace std;void sort____{int i, j, k; char*t;for ____ {k = i;for ____if ____<0) k = j;if ____ { t = a[i]; a[i] = a[k]; a[k] = t; }}}void main____{char ch[4][15] = { "morning","afternoon","night","evening"};char *name[4]; int k;for ____ name[k] = ch[k];sort____;for ____ cout << name[k] << endl;}
写出下面程序执行后的运行结果。 #include #includeusing namespace std;void main____{char ch[] = "abc", x[3][4];int i;for ____ strcpy____;for ____ cout << &x[i][i];}
写出下面程序执行后的运行结果。 #include using namespace std;int fun____{int j;*s = a; j = n;while ____ j--;return j;}void main____{char c[6]; int i;for ____*____='A' + i + 1;cout << fun____;}