scanf的输入格式

格式字符串的一般形式为:
%[*][输入数据宽度][长度]类型
其中有方括号[]的项为任选项

“*”符:用以表示该输入项,读入后不赋予相应的变量,即跳过该输入值。

cstdio和stdio.h的区别

参考这篇:https://blog.csdn.net/Abigial_/article/details/54799629

结构体的构造函数

  1. struct Node{
  2. int v, w;
  3. Node(int _v, int _w):v(_v), w(_w){}
  4. }
  5. temp = Node(4, 3);

字典序短的在前

sigh < sight

floor()/ceil()

头文件是#include
floor()是向负无穷大舍入,floor(-10.5) == -11;
ceil()是向正无穷大舍入,ceil(-10.5) == -10
https://blog.csdn.net/fightingforcv/article/details/50491311