[编程入门]自定义函数之字符类型统计 ```javaimportjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);Stringstr=sc.nextLine();intletter=0;i 题解列表 2024年08月29日 0 点赞 0 评论 572 浏览 评分:9.9
呜呜呜终于写出来了。我与链表的爱恨情仇 摘要:解题思路://用到链表的基础用法,链表中节点按照成员排序的话用插入法比较好用。注意事项://第一次写链表题目参考代码:#include <stdio.h> #include <stdlib.h> …… 题解列表 2024年08月30日 3 点赞 0 评论 708 浏览 评分:9.9
1157: 亲和数(C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n; cin >> n; while(…… 题解列表 2024年08月30日 1 点赞 0 评论 815 浏览 评分:9.9
1159: 偶数求和 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int n, m; while(cin >> n …… 题解列表 2024年08月30日 0 点赞 0 评论 758 浏览 评分:9.9
题解 2773: 计算线段长度 math.h头文件 ??解题思路??此题中两点之间存在四种情况:1.两点X坐标相同表示为:Xa==Xb解:两点Y坐标差值的绝对值2.两点Y坐标相同表示为:Ya==Yb解:两点X坐标差值的绝对值3.两点X,Y坐标均相同表示为:Xa==Xb&&Ya==Yb解:两点距离为04.两点X, 题解列表 2024年08月30日 0 点赞 0 评论 541 浏览 评分:9.9
指针/引用练习之交换数字 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int swap(int *a,int *b){ int temp; temp=*a; *a=*b; *b=temp; return …… 题解列表 2024年08月30日 0 点赞 0 评论 909 浏览 评分:9.9
判断一年的第几天 摘要:参考代码:#include<stdio.h>struct date { int year; int month; int day;};int main() { struct d…… 题解列表 2024年08月31日 1 点赞 0 评论 390 浏览 评分:9.9
1160: 出圈 (vector , 公式法) 摘要:解题思路:Vector注意事项:删除元素的位置在末尾的时候,需要注意初始化为0参考代码:#include#include using namespace std; int main() { …… 题解列表 2024年08月31日 0 点赞 0 评论 415 浏览 评分:9.9
循环链表解法(c语言代码) ```c#include#include//定义链表节点结构体typedefstructnode{intdata;//节点存储的数据structnode*next;//指向下一个节点的指针structnode*pre;//指向前一个节点的指针}linklist;//创建一个循环双向链表linklist 题解列表 2024年08月31日 0 点赞 0 评论 386 浏览 评分:9.9
循环链表解法(c语言代码) 我是很不想用链表的,因为每次写完都有一堆bug,因为链表很容易访问到空指针。但是我更不想用数组,数组太费脑子了。```c#include#include//定义链表节点结构体typedefstructnode{intdata;//节点存储的数据structnode*next;//指向下一个节点的指针s 题解列表 2024年08月31日 0 点赞 1 评论 682 浏览 评分:9.9