摘要: 方法一: #include <iostream> #include <windows.h> #include <string> using namespace std; int main() { int i = 0, j = 0; int a[4][5]; //给数组成员赋值 for (int i 阅读全文
posted @ 2022-08-28 20:59 wshidaboss 阅读(36) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <windows.h> #include <string> using namespace std; float averageSalary(int n[],int i) { float sum = 0; for (int x = 0; x 阅读全文
posted @ 2022-08-28 15:45 wshidaboss 阅读(42) 评论(0) 推荐(0) 编辑
摘要: #include <iostream> #include <windows.h> #include <string> using namespace std; void test(int n,char ch='$') { //可以在此指定默认参数 for (int i = 1; i <= n; i+ 阅读全文
posted @ 2022-08-28 15:18 wshidaboss 阅读(177) 评论(0) 推荐(0) 编辑