M
Magig Boatman
I am completely stumped after many hours pouring through my books, but
I need to write fractions. I have a method to convert a string
expression representing a fraction as "n/d" into a float and separate
numerator and denominator integers (using std::atoi(std::string)), but
now I need to convert an integer variable numerator and denominator
pair into a char array or std::string class as "n/d". How can this be
done?
Thanks!
Mark
I need to write fractions. I have a method to convert a string
expression representing a fraction as "n/d" into a float and separate
numerator and denominator integers (using std::atoi(std::string)), but
now I need to convert an integer variable numerator and denominator
pair into a char array or std::string class as "n/d". How can this be
done?
Thanks!
Mark