The_Other_One
VIP Member
Um, I guess programming is fine here... I'm in an intro to C++ and I've run into a slight problem. Our task is to make a simple calculator that will +-*/ two intergers. Simple enough... However, because I was sick recently, I missed the day he talked about type casting -.-
So, my question is, how do I convert two intergers into float? I tried a few things, but I always get 1/2=0. I could probably change x and y to float, but I beleive he wanted them to just be interger values...
So, my question is, how do I convert two intergers into float? I tried a few things, but I always get 1/2=0. I could probably change x and y to float, but I beleive he wanted them to just be interger values...