while ( getline(fin,sent)) //The test condition is TRUE // only while there is something to read ... { ...
mathbits.com