Advertisement
ExIsTeR

O parte din biletul 5

Apr 23rd, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #pragma warninng (disable:4996)
  2. #define drept 90
  3. #include<iostream>
  4. #include<conio.h>
  5.  
  6. using namespace std;
  7.  
  8. class polinom {
  9. public:
  10. int a;
  11. int b;
  12. int c;
  13. polinom(int a,int b,int c);
  14. void afisare();
  15. void copiere();
  16. ~polinom();
  17. void citire(int x,int y, int z);
  18. void suma();
  19. };
  20.  
  21. polinom::polinom(int a,int b,int c) {
  22. int x, y, z;
  23. cin >> x;
  24. cin >> y;
  25. cin >> z;
  26. this->a = x;
  27. this->b = y;
  28. this->c = z;
  29. cout << endl;
  30. }
  31. polinom::~polinom() {
  32.  
  33. }
  34.  
  35.  
  36. void polinom::afisare() {
  37.  
  38. cout << a <<"x^2"<<"+"<< b<<"x" << "+" << c<<endl;
  39.  
  40. }
  41.  
  42. void polinom::suma() {
  43.  
  44. }
  45.  
  46.  
  47. void main() {
  48. polinom a(7,8,9);
  49. a.afisare();
  50.  
  51.  
  52.  
  53.  
  54.  
  55. _getch();
  56. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement