- 博客(6)
- 收藏
- 关注
原创 ## Exception in thread "main" java.io.StreamCorruptedException: invalid stream header: 00000000
Exception in thread “main” java.io.StreamCorruptedException: invalid stream header: 00000000其实这是一个单纯IO流的问题,原因很简单,就是你传进去的byte数组是空的,一开始debug找到的错误是这句话:”byte[] datas=new byte[1024*60];“。但是将该式改成“ byte[] d...
2019-10-21 15:33:37 2145
原创 DFS递归与非递归算法(C语言)
头文件(DFS.h)#include<iostream>using namespace std;#define INF 32767#define MAXV 100typedef char InfoType;typedef struct ANode{ int adjvex; struct ANode *nextarc; int weight;}ArcNode;ty...
2019-05-24 22:53:29 1612
原创 while (scanf("%d", &n) != EOF)的使用
检查输入 n是到结尾。while (scanf("%d", &n) != EOF)//EOF到结尾的使用#include<iostream>#include<math.h>#include<stdio.h>int main(void){ int n, max = 0; while (scanf("%d", &n) != EOF)/...
2019-04-19 11:29:07 4252
原创 Visual Studio对scanf警告相关解决办法
对于初次使用 Visual Studio的初学者而言,在VS上敲代码使用到scanf编译后经常会编译错误,那是因为VS认为scanf是不安全的,所以VS2013将scanf换成了scanf_s。大家可以使用这个。或是在VS中屏蔽特定警告,即属性->配置属性->c++->高级->屏蔽特定警告...
2019-04-19 11:22:22 3539
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人