- 博客(2)
- 收藏
- 关注
原创 C语言scanf循环输入(vs2019)及各种小知识点
@[C语言scanf循环输入如何防止报错](这里写自定义目录标题 #include <stdio.h> int main(){ int i,ret; while(rewind(stdin),(ret=scanf("%d",&i)!=EOF) { prinf("%d\n",i); } return 0; }
2022-03-02 16:22:24
1468
原创 小笔记
941695@小笔记 小笔记 1.java中字符串有charAt,具体使用方式为 s.charAt(i);获取字符串中指定位置的字符。 2. 哈希图中的map.getOrDefault(ch,0);意思是获取这个ch的当前属性,如果不存在就设为默认值 e.g. public class TestMapMethod { public static void main(String[] args) { Map<String, String> map = new HashMap<>(
2021-01-25 23:37:10
73
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人