#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <windows.h>
using namespace std;
#define time 2;//采集周期(S)
int main()
{
unsigned long number2[2] = {0};//发送流量
unsigned long number1[2] = {0};//接受流量
float arv = 0 ; //平均速度
for(int count = 0;count<2;count++){
system("netstat -es >d:\\4.txt");
char s[1024] = {" "};
char data1[20]={" "};
char data2[20]={" "};
#include <fstream>
#include <string>
#include <cstdlib>
#include <windows.h>
using namespace std;
#define time 2;//采集周期(S)
int main()
{
unsigned long number2[2] = {0};//发送流量
unsigned long number1[2] = {0};//接受流量
float arv = 0 ; //平均速度
for(int count = 0;count<2;count++){
system("netstat -es >d:\\4.txt");
char s[1024] = {" "};
char data1[20]={" "};
char data2[20]={" "};