try:
stringstream ssss;
ssss << arrayy[i];
ssss >> first[i].country ;
ssss >> first[i].name ;
but first test that your arrayy[i] contain just 2 words, or at last the 2 fisrt are the correct. (I´m assuming that country and name are members of type std::string or simmilar). This will eat not used spaces