O’zbekiston


Download 3.06 Mb.
bet2/5
Sana03.12.2023
Hajmi3.06 Mb.
#1806449
1   2   3   4   5
Bog'liq
BOZOROV OG’ABEK labaratoriya7

float a;

  • // raqam ekanligini aniqlash 46.if(atof(h.c_str())){ a=atof(h.c_str());

    47.cout<<"NUMBER("<48.}
    49.else if(e1!=1){
    50.cout<<"IDENTIFIKATOR("<

    51.cout<<"\t\t\t\t OPERATOR("<
    52.}
    53.h2=0; h.clear(); 54.}
    55.else if(d==";" || d==","){ e2=t; s1=1; s=0; s2=0; 56.// sintksis tahlil uchun
    57.if((d!=",") && line[t-1]=='+' || line[t-1]=='-' || line[t-1]=='*' || line[t-1]=='/' ){
    58.if(d!="=" && (line[t-2]=='+' || line[t-2]=='-' || line[t-2]=='*' || line[t-2]=='/') ){ 59.cout<kelgan"<61.}
    62.}
    63.if(line[t+1]=='+' || line[t+1]=='-' || line[t+1]=='*' || line[t+1]=='/' ){ 64.// sintksis tahlil uchun
    65.if(d==","){
    66.cout<68.}
    69.}
    70.// raqam ekanligini aniqlash 71.float a;
    72.if(atof(h.c_str())){ a=atof(h.c_str()); 73.cout<<"NUMBER("<74.}
    75.else if(e1!=1){
    76.cout<<"IDENTIFIKATOR("<77.cout<<"\t\t\t\t DELIMETR("<78.}
    79.h2=0; h.clear(); 80.}
    81.else if(d==" "){ s2=1; s=0; s1=0; 82.float a;
    83.// raqam ekanligini aniqlash 84.if(atof(h.c_str())){ a=atof(h.c_str());
    85.cout<<"NUMBER("<86.}
    87.else
    88.if(!h.empty()) cout<<"IDENTIFIKATOR("<"<91.else { 92.h=h+d; h2++;
    93.}
    94.} // for siklini tugashi - bitta satrni tugashi 95.// vazifadagi belgilar uchramagan satrlar 96.if(s==0 && s1==0 && s2==0) {
    97.cout<<"IDENTIFIKATOR("<98.}
    99.i++; // satrlar soni
    100. }



    1. Download 3.06 Mb.

      Do'stlaringiz bilan baham:
  • 1   2   3   4   5




    Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
    ma'muriyatiga murojaat qiling