GoralWMoro

Untitled

Jan 14th, 2020
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.35 KB | None | 0 0
  1. int main() {
  2.     SquareFunction* kwadratowa = new SquareFunction(1,2,-3);
  3.     cout << kwadratowa->getY(1) << endl;
  4.     cout << kwadratowa->isWithinRange(-10) << endl;
  5.     for(int i = 0; i < kwadratowa->getRoots().size(); i++){
  6.         cout << kwadratowa->getRoots()[i] << endl;
  7.     }
  8.     cout << kwadratowa->getRootCount() << endl;
  9.     return 0;
  10. }
Advertisement
Add Comment
Please, Sign In to add comment