题解列表

筛选

编写题解 1739: 成绩排序 -java比较器

摘要:解题思路: 利用集合的sort进行排序(重写比较器)注意事项: 第一排序条件为成绩 其次姓名 最后年龄参考代码:import java.util.ArrayList; import java.uti……

考察经典Switch语句的用法

摘要:解题思路:考察经典Switch语句的用法注意事项:注意switch语句是先找到符合项才继续执行的,时间久了,有点忘了参考代码:#include<iostream> using namespace s……

1130数数字(for循环遍历)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cstring>using namespace std;int main(){ char s[100]; cin >……

1129排序问题(2)(sort排序)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool compare(int p1, int p2)……

1128排序问题(1)(sort排序)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool compare(int p1, int p2)……