基本格式

#include <iostream>

#include <fstream>

using namespace std;

ifstream fin("fin.in");

ofstream fout("fout.out");

void Input()

{

              ;//please  written at here

}

void algorithm()

{

       ;//please  written at here

}

void  Output()

{

       ;//please  written at here

}

int main()

{

  Input();       //输入

 algorithm();  //算法

 Output();   //输出

}

原文地址:https://www.cnblogs.com/1234----/p/5193051.html