⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ospfh_main.c

📁 实现禁位自动排列在禁位中具体实现了此方法所以这是一个创新很有应用价值在VC平台上调试通过
💻 C
字号:
#include "ospfh.h"
#include "ospfh_patch.h"

void main()
{
	struct thread thread;
	struct thread_master *master;
	struct ospf *ospf_top;
	char * config_file;  //path to the configuration file
   
	config_file="ospf_config.txt";

	/*Initiate master thread*/ 
	master = thread_master_create ();
	
	/* Initiate the ospf data structure */
	ospf_top = ospfh_init(master);             
	
    ospf_read_config (config_file, ospf_top);
    ospfh_init_continue(ospf_top);

//  ospfh_feed_up_receive(ospf_top);
	/*  Fetch next active thread. */ 
	while (thread_fetch (master, &thread))   
		thread_call (&thread);

	exit(0);
}

⌨️ 快捷键说明

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