file reading

This is a discussion on file reading within the C++ Programming forums, part of the General Programming Boards category; i have to read the following input from a file and store this data in arrays.e.g i have to store ...

  1. #1
    kohatian3279
    Guest

    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;
    FUNCTION:
    (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
    RoD
    RoD is offline
    Redundantly Redundant RoD's Avatar
    Join Date
    Sep 2002
    Location
    Missouri
    Posts
    6,331

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, 01:46 PM
  4. Possible circular definition with singleton objects
    By techrolla in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2004, 09:46 AM
  5. System
    By drdroid in forum C++ Programming
    Replies: 3
    Last Post: 06-28-2002, 10:12 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21