Hi guys can u help me? I have created vector,structure as u can see but I have issues w/ filling the vector...My task is to make a vector where user have to enter name,area,inhabitants. Much thanks for your help!!!
Perhaps you need to study the documentation for getline() to see what this function actually returns?
Next I really don't see where you're trying to fill in any vector. Also beware that vector.reserve() just increases capacity, but doesn't alter the size of the vector.