#
试题名
热度
更新日期
781 函数调用的简单例子。 #include <iostream> using namespace std; void ps() { cout<<"\n*** 77 2025-05-17
782 以下程序试图通过调用 swap1 函数交换 main 函数中变量 x 和 y 中的数据。观察一下程序的运行结果。 #inclu 86 2025-05-17
783 写出以下程序的运行结果。 #include <iostream> using namespace std; void swap2(int x[]) { int z; 49 2025-05-17
784 分析下面程序的运行结果。 #include<iostream> using namespace std; void swap1(int *,int *); int mai 36 2025-05-17
785 使用局部变量的例子。 程序如下: #include<iostream> using namespace std; void fun() { int t=5; co 62 2025-05-17
786 分析下面程序的运行结果。 #include<iostream> using namespace std; int main() { int a,s; s=10 81 2025-05-17
787 多个函数使用全局变量的例子。 #include<iostream> using namespace std; int n=100; void fun() { n*= 64 2025-05-17
788 写出下面程序的运行结果。 #include<iostream > using namespace std; int d=1; void fun(int p) { 62 2025-05-17
789 写出下面程序的运行结果。 程序如下: #include<iostream>  using namespace std;  void pm()  {    voi 27 2025-05-17
790 以下程序中 for 循环执行的次数是多少?程序的运行结果是什么? #include <iostream> using namespace std; # 87 2025-05-17
791 写出下面程序的运行结果。 #include <iostream> using namespace std; #define P 4 #define F(x) P*x*x 48 2025-05-17
792 输入一个整数,用递归算法实现将整数倒序输出。 75 2025-05-17
793 计算 4!。 27 2025-05-17
794 计算 s=1!+2!+…+n!,要求使用函数计算阶乘的值。 24 2025-05-17
795 编写函数,统计整数 n 的各位上出现数字 1、2、3 的次数。要求输入和输出均在 main 函数中完成。 74 2025-05-17
796 编写两个函数,将 n 个正整数中的素数按升序排序。两个函数的功能分别是判断一个数是否为素数,以及对数组进行 90 2025-05-17
797 编写函数,统计整数 n 的各位上出现数 字 1、2、3 的次数。要求输入和输出均在 main 函数中完成。 43 2025-05-17
798 编写函数将任意十进制正整数转换为二进制数。 71 2025-05-17
799 计算以下公式的值。  ​​​​​​​ 要求在 main 函数中输入 n,并输出 y 的值,用自定义函数计算公式每一项 53 2025-05-17
800 计算以下公式的值。  ​​​​​​​ 要求在 main 函数中输入 n,并输出 y 的值,用自定义函数计算公式的值,其 57 2025-05-17