1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

simplified the CAESAR problem

Discussion in 'C' started by jose_peeterson, Jun 10, 2011.

  1. jose_peeterson

    jose_peeterson New Member

    Joined:
    May 19, 2011
    Messages:
    56
    Likes Received:
    1
    Trophy Points:
    0
    this if statement does not seem to work
    please help me fix the bug.
    Code:
    k = 0;
    
    for(i = 0;i < l;i++);
      {
       if( (ascii[i] == 32) || (i == (l - 1)) )
        {
                                               //  printf("%d\n",i);
          
          while( (k <= i) && ascii[k] >= 97 && ascii[k] <= 122)
          {
           ascii[k] = ascii[k] + 3;
           
           secret[k] = ascii[k];
          
           k = k + 1; 
          
          }
        k = i + 1;
        
        }
            
      }
     
    Last edited by a moderator: Jun 10, 2011

Share This Page