Hello, I need help solving an issue with some of my code for a lab assignment. I
Question:
Hello, I need help solving an issue with some of my code for a lab assignment. I have almost all of it finished. I will include details of the assignment and my code snippet below. I made a calculator using wxWidgets in c++, I have implemented simple calculations and its working. However, I am trying to implement Sine, cosine, and tangent. It seems that the program isn't hitting that part of the switch case, I've put breakpoints in for the other operators and stepped through and the others work fine. I have a few theories as to why this is happening, but I don't know the exact cause.
Specifically, I think the problem is in the CalculateResult function. I was trying to implement sin correctly before moving on to the others. Its not getting any type of value and returning 0. I included the header and cpp files below.
Accounting What the Numbers Mean
ISBN: 978-1259535314
11th edition
Authors: David Marshall, Wayne McManus, Daniel Viele