how can i extract fraction e.g. 12/4 which is stored in a char array?i mean i want to put 12 in int numerator and 4 in int denominator.