wzr1005 / wzr1005.github.io

0 stars 0 forks source link

C/C++小知识 | Light of the Seven's blog #25

Open wzr1005 opened 5 years ago

wzr1005 commented 5 years ago

https://wzr1005.github.io/2019/03/07/C-C-%E5%B0%8F%E7%9F%A5%E8%AF%86/#more

scanf("%[^\n]", &a) 遇到回车结束。 memset头文件 #include <cstring> vector<vector v.size()是行数,v[0].size() 是列数 如果是定义的 char s[maxn];,里面可能会出现空格,那么这样输入 scanf("%[^\n]", s); 关闭同步 st