摘要: 1.数组使用 int* p = new int[5](); // 数组新建并全部初始化为0 等价于: int* p; p = new int[5](); int* q = new int[5]; // array elements all have indeterminate value 2.队列的 阅读全文
posted @ 2016-12-20 11:33 Anita-ff 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 1.为了看运行结果加了 system(“pause”);结果导致图像显示不出来,数据为空。主要是因为system pause后停止计算。图像显示不出来。应该改成:waitKey(0);其中要加上头文件:#include <stdio.h> #include <Windows.h> 2。编译时出现: 阅读全文
posted @ 2016-12-20 11:02 Anita-ff 阅读(439) 评论(0) 推荐(0) 编辑