I'm writing a program in which a user enters a complex number (a + bi). I need to store the real numbers a and b in floating points *x1 and *i1 respectively but I'm having a hard time figuring out how to approach it.
It would be easy to ask for each part individually, but the program I have to write doesn't allow for that. The user enters the entire number.
Can anyone give me any suggestions on how to look at it?