How can i create object from a file in c++? : Im learning c++.
I have my class complex: 

    
    #include "Complejo.h"
    #include <sstream>
    Complejo::Complejo() {
    	// TODO Auto-generated constructor stub
    	real = 0;
    	imaginary = 0;
    }
    Complejo::Complejo(int a, int b){
    	real = a;
    	imaginary = b;
    }
    
    
    Complejo::~Complejo() {
    	// TODO Auto-generated destructor stub
    }
    std::string Complejo::mostrar()const{
    	std::stringstream  s;
    	s << real << "+" << imaginary <<"i";
    	return s.str();
    }

and in my main i need to read a file(every line has a complex) like this:

    3 + 5i
    4 + 2i
    3 + 3i

and create objects. How i can do it?