- 10
- 0
- 约1.13万字
- 约 19页
- 2019-06-03 发布于江西
- 举报
二元方程封装(C++)
//封装
#ifndef _CBIEQUTION_H
#define _CBIEQUTION_H
#include cmath
#include iostream
using namespace std;
typedef struct _x1x2
{
float x1;
float x2;
}X1X2;
class CBiEqution
{
private:
int _a;
int _b;
int _c;
inline int getBB4AC()const
{
return _b*_b-4*_a*_c;
}
public:
CBiEqution(int a=1,int b=2,int c=1);
CBiEqution operator+(const CBiEqution equ);
CBiEqution operator-(const CBiEqution equ);
friend bool operator==(const CBiEqution equ1,const CBiEqution equ2);
friend istream operator(istream is,CBiEqution equ);
friend ostream operator(ostream os,CBiEqution equ);
X1X
您可能关注的文档
- ((人教版))[[初一英语课件]]英语课堂教学研讨会专家讲座《英语学科中小学衔接与初一年级课堂教学建议》.ppt
- ((人教版))[[二年级英语试题]]小学二年级英语下册期末测试题.doc
- ((外研英语))[[初一英语教案]]外研版七年级英语上全册常用短语归纳.doc
- (go_for_it)新目标英语七年级Unit7-12复习课件.ppt
- (广东专用)高中英语 Unit 22 Period Four Lesson 3 Natural Disasters课件 北师大版选修.ppt
- (人教PEP)六年级英语下册课件 Unit 4(12).ppt
- (人教新版)六年级英语下册课件 Unit 5 Save our planet Lesson 26.ppt
- (人教新课标)三年级数学上册课件 平行四边形的认识.ppt
- (人教新起点)二年级英语下册课件 Unit10 Weather lesson.ppt
- (人教新起点)一年级英语下册课件 Unit 14 Clothes.ppt
原创力文档

文档评论(0)