摘要:
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define TAXBASE 3500 typedef struct { long start; long end; double taxrate; }TAXTABLE; TAXTABLE Tax 阅读全文
摘要:
#define _CRT_SECURE_NO_WARNINGS #include <stdio.h> #define MAXCHAR 101 //最大允许字符串长度 //将字符转换成数字 int char_to_num(char ch) { if (ch >= '0' && ch <= '9') r 阅读全文
摘要:
#include <stdio.h> int main() { int m[10] = {-3,4,7,9,13,45,67,89,100,180}; int low = 0, high = 10 - 1, mid; //low起始位置 high末位置 int a, i, k = -1; //k保存 阅读全文
摘要:
#include <stdio.h> int main() { int i, j, n; int m[8] = { 5, 3, 9, 6, 6, 2, 7, 8 }; //要排序的数组 for (i = 0; i < 8; i++) { for (j = 0; j < 7 - i; j++) { i 阅读全文
摘要:
#include <stdio.h> int main() { double money = 0; int i; for (i = 1; i <= 5; i++) { money =(money + 1000) / (1 + 12 * 0.0063); } printf("%0.2f", money 阅读全文
摘要:
#include <stdio.h> #include<math.h> int main() { float a, b, c, d; float f, F; float x = 1.5, x0; printf("输入方程系数:"); scanf_s("%f %f %f %f", &a, &b, &c 阅读全文
摘要:
#include <stdio.h> Fib(int n) //n代表第几个数 { if (n == 1 || n == 2) return 1; else return Fib(n - 1) + Fib(n - 2); } fib(int n) //列出前n个数 { int fib1 = 1, f 阅读全文
摘要:
#include <stdio.h> #include<math.h> int main() { int flag = 0; for (int i = 1; i <= 9; i++)//前两位车牌 { if (flag) break; for (int j = 0; j <= 9; j++) //后 阅读全文
摘要:
#include <stdio.h> typedef struct date { int year, month, day; }DATE; int runYear(int year) { if (year % 4 == 0 && year % 100 != 0 || year % 400 == 0) 阅读全文
摘要:
#include <stdio.h> int main() { int i, j, k, n = 0; for (i = 1; i <= 5; i++) { for (j = 1; j <= 5; j++) { if (j == i)continue; for (k = 1; k <= 5; k++ 阅读全文