This is just an example of my questionnaire. I want to have each answer revised numerically which works as desired but when I go to use those same outputs in a simple math problem the answer always comes out as zero. I'm teaching myself C++ and I'm not sure the proper terminology for some if these things. Thanks in advance for any help.
I think part of your problem is because you're using float value (d, e) to hold the results of integer operations (a, b). The compiler truncates the result before storing it. Try making a and b floats too, or using d = static_cast<float>(a*100/42) (not completely sure about that...)