int i;
string *opening;
string *ending;
int *num1, *num2, *num3, *num4, *num5, *num6;
char chr, chr1, chr2, chr3;
for(i= 0; i< sizeOfArray; i++)
{
getline(cin,opening[i]);
cin >> num1[i] >> chr >> num2[i] >> num3[i] >> chr1 >> num4[i] >> chr2 >> num5[i] >> chr3 >> num6[i];
getline(cin,ending[i]);
}
MY INPUT:
hello 1\2 3\4-5\6 bye
the code compile with no error, but it cannot read the first word,
while it only stores "1\2 3\4-5\6 bye"
how to get the first word??