Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma warninng (disable:4996)
- #define drept 90
- #include<iostream>
- #include<conio.h>
- using namespace std;
- class polinom {
- public:
- int a;
- int b;
- int c;
- polinom(int a,int b,int c);
- void afisare();
- void copiere();
- ~polinom();
- void citire(int x,int y, int z);
- void suma();
- };
- polinom::polinom(int a,int b,int c) {
- int x, y, z;
- cin >> x;
- cin >> y;
- cin >> z;
- this->a = x;
- this->b = y;
- this->c = z;
- cout << endl;
- }
- polinom::~polinom() {
- }
- void polinom::afisare() {
- cout << a <<"x^2"<<"+"<< b<<"x" << "+" << c<<endl;
- }
- void polinom::suma() {
- }
- void main() {
- polinom a(7,8,9);
- a.afisare();
- _getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement