0712201.cpp

来自「That is source code for DijKstra Algo」· C++ 代码 · 共 38 行

CPP
38
字号
// 0712201.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream>
#include "DoThi.h"

int main(int argc, char* argv[])
{
	if(argc == 3)
	{
		char *in = argv[1];
		char *out = argv[2];

		FILE *f, *ff;
		f = fopen(in, "rt");
		ff = fopen(out, "wt");

		if(!f || !ff)
		{
			cout<<"Khong mo duoc file!\n";
			exit(1);
		}
		
		CDoThi H;

		H.DocDoThi(in);

		H.Tim_3_DuongDiNganNhat(ff, H.GetDinhDau(), H.GetDinhCuoi());
		fcloseall();
	}
	
	else
		cout<<"Tham so dong lenh nhan sai!\n";

	return 0;
}

⌨️ 快捷键说明

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