else if (haqiqiyson(subStr) == true)
printf("%s - Real number\n", subStr);
else if (haqiqiy_identifikator(subStr) == true
&& Ajratuvchi(str[right - 1]) == false)
printf("%s - Real identifier\n", subStr);
else if (haqiqiy_identifikator(subStr) == false
&& Ajratuvchi(str[right - 1]) == false)
printf("\n%s - Not real identifier", subStr);
left = right;
}
}
return;
}
int main(){
char ch, buffer[15], operators[] = "/+-=*%";
ifstream fin("Test.txt");
int i,j=0;
if(!fin.is_open()){
cout<<"File isn't found\n";
exit(0);
}
char S[200];
while(!fin.eof())
{ fin.getline(S,200);
tahlil(S);
}
fin.close();
return 0;
}
Do'stlaringiz bilan baham: |