Thread: A little help on File reading? Not a big prob :)

  1. #16
    Registered User biosx's Avatar
    Join Date
    Aug 2001
    Posts
    230

    Re: Oh... and Vinter

    Originally posted by Denethor2000
    I suck at cases :/

    How would i make this into a working case statement:

    switch(file)
    {
    case useme[i] = 'a':
    useme[i] = 'ô';
    break;
    }



    if it sux that bad so as u dont get it... im making it so that if the letter that useme is on is a, it changes it to ô :P
    Create two arrays, a plaintext array and a ciphertext array.

    Code:
    switch( plaintext[i] )
    {
       case 'a':
          ciphertext[i] = '&';
          break;
       default:
          // safety
    };
    gotta run bye

  2. #17
    Registered User
    Join Date
    Dec 2001
    Posts
    206

    biosx..

    for( int i = 0; i < strlen(useme); i++ )

    my version of

    for( int i = 0; i < strlen(text); i++ )

    in order to fit with my program, is giving me trouble. saying something about signed/unsigned (?)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. sequential file program
    By needhelpbad in forum C Programming
    Replies: 80
    Last Post: 06-08-2008, 01:04 PM
  2. Can we have vector of vector?
    By ketu1 in forum C++ Programming
    Replies: 24
    Last Post: 01-03-2008, 05:02 AM
  3. Game Pointer Trouble?
    By Drahcir in forum C Programming
    Replies: 8
    Last Post: 02-04-2006, 02:53 AM
  4. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM