摘要: ​ 目录: 指针与数组 指针与字符串 函数指针 指针函数 指针数组 多重指针 动态内存分配与指针 1.指针与数组: ​ ​ ​ ​ (2)用字符型指针变量作实参 ​ (3)用字符指针变量作形参和实参 ​ ​ ​ ​ 3.函数指针: ​ 1. ​ 2. ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ ​ 阅读全文
posted @ 2022-04-05 00:20 HzzzzLi 阅读(28) 评论(0) 推荐(0)
摘要: 核心:队列 1 #include<stdio.h> 2 struct note 3 { 4 int x; 5 int y; 6 int s; 7 8 }; 9 int main(){ 10 struct note que[2501]; 11 int a[51][51]={0},book[51][51 阅读全文
posted @ 2022-04-05 00:19 HzzzzLi 阅读(24) 评论(0) 推荐(0)
摘要: ​ Pattern与Matcher 这两个类都在java.util.regex包中 总结: (获取pattern对象) 2.p.pattern();返回其对应的正则表达式的字符串形式 3. ​ Pattern有一个split(CharSequence input)方法,用于分隔字符串,其中Patte 阅读全文
posted @ 2022-04-05 00:18 HzzzzLi 阅读(99) 评论(0) 推荐(0)
摘要: import java.util.Scanner; class Point{ double x; double y; } public class Test01 { public static void main(String[] args){ Point a=new Point(); Point 阅读全文
posted @ 2022-04-04 00:18 HzzzzLi 阅读(24) 评论(0) 推荐(0)
摘要: https://www.lanqiao.cn/problems/646/learning/ #include<bits/stdc++.h> using namespace std; int prime(int x){ int i,flag=1; for(i=2;i<=sqrt(x);i++){ if 阅读全文
posted @ 2022-03-30 23:39 HzzzzLi 阅读(44) 评论(0) 推荐(0)
摘要: https://www.lanqiao.cn/problems/553/learning/ #include<bits/stdc++.h> using namespace std; int a[105][105]; int n,m; int find_max(int x,int y){ int i, 阅读全文
posted @ 2022-03-30 22:14 HzzzzLi 阅读(98) 评论(0) 推荐(0)
摘要: https://www.lanqiao.cn/problems/592/learning/ 1 #include<cstdio> 2 int main(){ 3 int a,i=0,ans=0; 4 for(i=1;i<=2020;i++){ 5 if(i%10==2)ans++; 6 if(i/1 阅读全文
posted @ 2022-03-30 21:00 HzzzzLi 阅读(51) 评论(0) 推荐(0)
摘要: https://www.lanqiao.cn/problems/1025/learning/?contest_id=55 1 #include<bits/stdc++.h> 2 using namespace std; 3 #include<cstdio> 4 int main() 5 { int 阅读全文
posted @ 2022-03-30 00:11 HzzzzLi 阅读(112) 评论(0) 推荐(0)
摘要: https://www.lanqiao.cn/problems/545/learning/?contest_id=55 1 #include<bits/stdc++.h> 2 using namespace std; 3 #include<cstdio> 4 int main() 5 { 6 int 阅读全文
posted @ 2022-03-29 22:17 HzzzzLi 阅读(73) 评论(0) 推荐(0)
摘要: https://www.lanqiao.cn/problems/307/learning/?contest_id=55 1 #include <stdio.h> 2 #include <stdlib.h> 3 4 int main() 5 { 6 int i,j,N; 7 scanf("%d",&N 阅读全文
posted @ 2022-03-29 21:49 HzzzzLi 阅读(105) 评论(0) 推荐(0)