摘要:
package mail; /** * @Description:邮件信息类 * * @ClassName: SimpleMail */ public class Mail { /** * 主题 */ private String subject; /** ... 阅读全文
摘要:
//计算1/1!-1/3!+1/5!-1/7!+…+(-1)^(n+1)/(2n-1)! float mathTest(int n){ int sign = 1; float sum = 1, t = 1; for (int i = 1; i > n; for (int i = 0; i > a[i][j]; } } //打印矩阵... 阅读全文
摘要:
//输出两个数的最大公约数(穷举法) int MaximumCommonDivisor(int a,int b){ int result; int t = 1; for (int i = 2; i <= a && i <= b;i++) { while (a % i == 0 && b % i == 0) { ... 阅读全文
摘要:
#include #include using namespace std; /*********1***********/ const int N_limit = 2; int value_lim = 50; /*********2**********/ const int N_mid = 11; /*********3**********/ const int N_mean = 12; ... 阅读全文