mainframe.cpp

来自「每对节点间最短路径 Floyd-Warshall 算法 D[i,j]」· C++ 代码 · 共 58 行

CPP
58
字号
/*********************************************\
*                                             *
*                                             *
*                                             *
*                                             *
*                                             *
*                   copyright starfish        *
*                           2000/10/24        *
*                                             *
\*********************************************/


#include <cstdio>
#include <algorithm>
#include <cassert>
#include <iostream>
#include <cmath>
#include <ctime>
#include <bitset>
#include <stdlib.h>
#include <stddef.h>
#include <float.h>


#define input ".in"      //Input file name
#define output ".out"    //Output file name

FILE *fin,*fout;
int probN=0;

int read_case()
{
   int i,j,k;
   if (feof(fin)) return 0;
   
   return 1;
}



void solve_case()
{
   int i,j,k;



}


int main()
{
   assert(fin=fopen(input,"r"));
   assert(fout=fopen(output,"w"));   //if there is no output file, comment this line
   while (read_case()) solve_case();
   fclose(fin);
   fclose(fout);                    //if there is no output file, comment this line
	return 0;
}

⌨️ 快捷键说明

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