NEED HELP....trying to get toupper to work for all input data

#include <iostream>
#include <conio.h>
using namespace std;
bool eof( char , char );
char winner(char , char );
bool vaild_data( char , char );
void read( char &, char &);
void get_data(char &, char &);
int main()
{
char blue, red, w;
int b_cnt=0, r_cnt=0, t_cnt=0;




// READ
get_data (blue, red);

while( !eof(blue,red) )
{
if( !vaild_data(blue, red))
{
cout<<"Pick a vaild character\n";
}
else
{
w=winner(blue, red);




if(w=='T')
{
t_cnt++;
cout<<"Tie game \n";
}
else

if(w=='B')
{
b_cnt++;
cout<<"Team Blue wins \n";
}
else
{
r_cnt++;
cout<<"Team Red wins \n";
}

}
cout<<"\n\n"<<b_cnt<<r_cnt<<t_cnt<<"\n\n";
get_data(blue, red);

}




cout<<"\n blue team has won "<<b_cnt;
cout<<"\n \n red team has won "<<r_cnt;
cout<<"\n \n their have been "<<t_cnt<<"tie games \n";
cout<<"end";
getch();
return 0;

}

//***********************************************************************
char winner ( char blue, char red)
{
if ( blue==red)
return 'T';

else
if( blue=='R' && red=='S'
||
blue=='P' && red=='R'
||
blue=='S' && red=='P')
return 'B';
else return 'R';
}


//*****************************************************************************

bool eof( char blue, char red)
{
if(blue=='Q' || red=='Q')
return true;
else
return false;
}

//*****************************************************
bool vaild_data( char x, char z)
{
return (x=='R' || x=='P' || x=='S') && (z=='R' || z=='P' || z=='S');
}
//******************************************************************************

void read( char &blue, char &red)
{
cout<<"\n\n Team Blue enter an option : ";
cin>>blue;

cout<<"\n\n Team Blue enter an option : ";
cin>>red;
return;
}
//******************************************************************************
void get_data (char &blue, char &red)
{
cout<<"Team blue enter a choice \n";
cin>>blue;

if( blue!='Q')
{
cout<< "Team red enter a choice \n";
cin>>red;
if( red=='Q')
cout<<"Team red has quit \n";

}


else
cout<<"Team blue has quit \n";

return;
}
//*****************************************************************************
Topic archived. No new replies allowed.