Thread: file reading

  1. #1

    Question file reading

    i have to read the following input from a file and store this data in arrays.e.g i have to store 0 and 1 in the array named alphabet.the states q0 and q1 and q2 and q3 in another array.
    so ne1 having ne idea?

    ALPHABET: 0, 1;
    STATES: q0, q1, q2, q3, q4 ;
    INITIAL: q0;
    FINAL: q4;
    (q0,0)=q1, (q0,1)=q2,
    (q1,0)=q3, (q1,1)=q4,
    (q2,0)=q3, (q2,1)=q3,
    (q3,0)=q1, (q3,1)=q4,
    (q4,0)=q4, (q4,1)=q4 ;

  2. #2
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. opening empty file causes access violation
    By trevordunstan in forum C Programming
    Replies: 10
    Last Post: 10-21-2008, 11:19 PM
  2. Formatting the contents of a text file
    By dagorsul in forum C++ Programming
    Replies: 2
    Last Post: 04-29-2008, 12:36 PM
  3. Replies: 3
    Last Post: 03-04-2005, 02:46 PM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 10:46 AM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM