struct node { int a,b,c; node (int x, int y, int z) : a(x), b(y), c(z) {}//大括号内可以执行语句 };
node 即为构造函数 相当于
struct node { int a,b,c; node (int x, int y, int z) { a=x,b=y,c=z; } };