📄 triunghi.h
字号:
#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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -