用的devc++
child,cookie没有初始化就进行比较运算了比较2个变量类型不一致,一个是int,一个是size_t,也就是unsigned long longchild,cookie的类型也改成size_t