reep.cpp

来自「传感器网络的可靠路由算法」· C++ 代码 · 共 42 行

CPP
42
字号
// REEP.cpp : Defines the entry point for the console application.
//This file is the entry of the whole program 

#include "stdafx.h"
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include "Network.h"
//#include <windows.h>
//#include <time.h>
//#include<dos.h>

//#include <wtypes.h>
//#include <winbase.h>
//#include <unistd.h>


#include <sys/types.h>
#include <stdarg.h>

#define MAX_BUFF_LENGHT 255

extern NETWORK_TYPE net;

extern bool BlankLine(char String[]);


void main()
{
    

	FILE *stream ;
    //sleep(200);
	if((stream = freopen("MH_A_new.txt", "w", stdout)) == NULL)
    exit(-1);

	NetworkInit("C.in"); 
	
    startSimulation();		 

}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?