if (data = 97) {
Assigning the value to 97 hardly seems likely to be what you want to do. Comparing the value in data to 97 (==) seems more likely.
Of course, comparing it to 'a' seems even more likely:
if(data == 'a')
{
if (data = 97) {
Assigning the value to 97 hardly seems likely to be what you want to do. Comparing the value in data to 97 (==) seems more likely.
Of course, comparing it to 'a' seems even more likely:
if(data == 'a')
{