devc++:[error]Id returned exit 1 statdus

静态变量没有初始化
cat类的静态变量count未初始化
初始化以后:即可运行在这里插入图片描述
以及main函数打错也会出现:
在这里插入图片描述
但是main函数打错的话还是有出错提示的,应该比较好找

发布了24 篇原创文章 · 获赞 10 · 访问量 4999

猜你喜欢

转载自blog.csdn.net/weixin_44559752/article/details/102825748