Advertisement
Guest User

Untitled

a guest
Jul 28th, 2015
220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. bool DoYouWantToSolveAnotherQuadraticEquation()
  2. {
  3. bool solveAnother;
  4. cout << "\n\nDo you want to find the roots of another quadratic?"
  5. << "\nEnter 0 for no, or non-zero for yes: " << flush;
  6. cin >> solveAnother;
  7. if (solveAnother == 0)
  8. solveAnother = false;
  9. else
  10. solveAnother = true;
  11. return solveAnother;
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement