Thread: help using strings and mapping

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,732
    i suppose you should do it something like this, assuming that your cipher key are in coded char array.

    Code:
    if(isalpha(letter))
    {
        message[count] = coded[letter - 'a']; 
    }
    ssharish
    Last edited by ssharish2005; 11-29-2007 at 10:55 PM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Reading a file with Courier New characters
    By Noam in forum C Programming
    Replies: 3
    Last Post: 07-07-2006, 09:29 AM
  2. Table mapping Strings to Strings
    By johnmcg in forum C Programming
    Replies: 4
    Last Post: 09-05-2003, 11:04 AM