anybody understand that?

Discussion in 'C' started by manhatten, Apr 15, 2008.

  1. manhatten

    manhatten New Member

    Joined:
    Apr 15, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Code:
    {
            N=-1;
            t=getchar();
            while(t!=EOF)
    {
            v=getchar();
            if((t==' ' && v==' ') || (t==' ' && v=='#'))
            ;
            if(t=='#' && (v>='1' && v<='10'))
            N += 1;
            if((t>='1' && t<='10') && v==' ')
            N += 1;
            if(t==' ' && (v>='A' && v<='Z'))
            bok[N][27][v-'A'] +=1;
            if((t>='A' && t<='Z') && (v>='A' && v<='Z'))
            bok[N][t-'A'][v-'A'] +=1;
            if((t>='A' && t<='Z') && v==' ')
            bok[N][t-'A'][27] +=1;
            t=v;
    }
     
    Last edited by a moderator: Apr 16, 2008

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice