it is a bracket too much opened, but write cleaner code:
if ((((strcmp(taxstatus, "H")==0))||((strcmp(taxstatus, "h")==0))) && (grosspay>500)){
if ( ( (strcmp(taxstatus, "H")==0) || ((strcmp(taxstatus, "h")==0) && (grosspay>500) ) {
instead of
strcmp(taxstatus, "S")==0)
you better write
switch( taxstatus[0] )
{
case 'H:'
case 'h':
because it is a single character!!!
input.open("text.txt"); //file should have a full path