Guest User

Untitled

a guest
Jan 3rd, 2011
372
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.33 KB | None | 0 0
  1. #include "maths.h"
  2. #include <iostream>
  3. #include <string>
  4.  
  5. int main(){
  6.     while(true){
  7.         std::string str;
  8.         std::getline(std::cin, str);
  9.         if(str == "quit") break;
  10.  
  11.         Equation eq(str.c_str());
  12.         std::vector<Complex> root = eq.solve();
  13.  
  14.         for(unsigned i = 0; i < root.size(); i++)
  15.             std::cout << root[i] << '\n';
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment