realisation.~h

来自「The realization of Simplex Method. It ca」· ~H 代码 · 共 32 行

~H
32
字号
//---------------------------------------------------------------------------
#include <fstream.h>
#include <vcl.h>
#include <Grids.hpp>
//---------------------------------------------------------------------------

#include "Simplex.h"
//---------------------------------------------------------------------------

#pragma hdrstop
//---------------------------------------------------------------------------

class Rational
{
 public:
	Rational ();
	Rational (int x, int y) :  p(x), q(y) { Abbr(); };
	Rational inv ();
	friend Rational operator - (Rational a, Rational b);
	friend Rational operator + (Rational a, Rational b);
	friend Rational operator * (Rational a, Rational b);
	friend Rational operator / (Rational a, Rational b);
 private:
	int NOD (int x, int y);
	void Abbr ();
 private:
	int p, q;
	int sign;
};
//---------------------------------------------------------------------------

⌨️ 快捷键说明

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