Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "maths.h"
- #include <iostream>
- #include <string>
- int main(){
- while(true){
- std::string str;
- std::getline(std::cin, str);
- if(str == "quit") break;
- Equation eq(str.c_str());
- std::vector<Complex> root = eq.solve();
- for(unsigned i = 0; i < root.size(); i++)
- std::cout << root[i] << '\n';
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment