A little assistance, this need to input names and addresses of two people then output.
When i input address like "P. O Box 2548" it terminates and shouldn't do that.
The function is perfect the only problem is the out put.
#include <iostream>
#include <string>
using namespace std;
when i used 4 strings after entering the address like 'P. O Box 0000" the program suddenly terminated so i thought the problem was "P.O Box 0000" string because it contained spaces.
But after changing that the problem stayed the same.