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