填空题
下面程序的输出结果是
【7】
。
#include<iostream.h>
int add(int a, int b);
void main()extern int x, y;
cout<<add(x, y)<<end1;int x(20),y(5);
int add(int a, int b)int s=a+ b;
return s;
【参考答案】
Y
点击查看答案
<上一题
目录
下一题>
热门
试题
填空题
在下面函数的横线处填上适当的内容,使该函数能够利用递归方法求解字符串str的长度 (不得使用系统提供的字符串处理函数)。int GJetLen(char*str)if( 【8】 ) return 0;else return 1+GetLen (str+1);
点击查看答案
填空题
【5】 是一种信息隐蔽技术,目的在于将对象的使用者和对象的设计者分开。
点击查看答案
相关试题
若有以下程序:#include <iostream>usi...
Staff类含有int 型数据成员ID,两个Staff...
下面程序的输出为 【11】 。#include...
下列程序的输出结果为 【13】 。#incl...
以下程序的执行结果是 【12 。#includ...