triunghi.h

来自「descriere descriere descriere」· C头文件 代码 · 共 46 行

H
46
字号
#ifndef _TRIUNGHI_H
#define _TRUINGHI_H

#include "figura.h"
#include "Punct.h"
#include <iostream.h>
#include <fstream.h>



class Triunghi :public Figura
{
private:
		
public:
	Punct A,B,C;

	Triunghi();
	Triunghi(Punct, Punct,Punct);

	Punct obtA();
	Punct obtB();
	Punct obtC();

	void setA(Punct);
	void setB(Punct);
	void setC(Punct);

	float obtAB();
	float obtAC();
	float obtBC();
	void readFromFile(char* );
	void afisare();
	double Perimetru();
	double Arie();
	Figura& deplasare(double, double);
	friend ifstream&  operator>>(ifstream& in,Triunghi&);
	friend ofstream& operator<<(ofstream& out,Triunghi& );
	friend istream&  operator>>(istream& in,Triunghi&);
	friend ostream& operator<<(ostream& out,Triunghi& );


};


#endif

⌨️ 快捷键说明

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