Home > Back-end >  The plural calculator
The plural calculator

Time:12-19

Everyone a great god, turn the knowledge about c + + plural calculator class set, how to read from the file in real part and imaginary part and the output?

CodePudding user response:

There is a number of complex number is not very clear, a file? If stored as rows of simpler to read: constantly getline obtain a line of data, you can use the iterator to find the first '+' or '-' to find out the real component, with iteration the 'I' get imaginary part, combined, hope to help you
  • Related