Thread: strings

  1. #1
    Registered User
    Join Date
    Apr 2003
    Posts
    6

    strings

    hai,
    i have a problem. i had posted the same problem previously but i couldnt understand the solution so i tried my self for solution but was unsuccessful i getting an answer.
    i had attached the text file and my programme.
    i want to have my output to be like this \
    System SG sg Os
    Na3N 139 "I4/MMM" 4

    i couldget the first line but i couldnt get the second line.
    the error message is Memory fault
    what can be the error

    my input text file:

    $system = "Na3N";
    $SG = "139";
    $sg = "I4/MMM";
    $os = "Al3Ti";
    $NoA = 4;
    $afrom = 4.24269319472366;
    $bfrom = 4.24269319472366;
    $cfrom = 5.99985148882454;
    $alpha = 90;
    $beta = 90;
    $gamma = 90;
    $the_best_energy = -5.399666516753E+02

    bye
    sudhir

  2. #2
    Registered User
    Join Date
    Apr 2003
    Posts
    6

    string

    i made the changes to my programme and now i have a error
    "parse error before character 0204"
    i dont understand this error
    bye
    sudhir

  3. #3
    Registered User
    Join Date
    Jan 2003
    Posts
    115
    you probably forgot a semi-colon somewhere.

    parse errors are usually missing ';'
    there are only 10 people in the world, those who know binary and those who dont

  4. #4
    Registered User
    Join Date
    Apr 2003
    Posts
    6
    now i am through read the whole file now my problem is how to read only some columns in the file
    bye
    sudhir

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Strings Program
    By limergal in forum C++ Programming
    Replies: 4
    Last Post: 12-02-2006, 03:24 PM
  2. Programming using strings
    By jlu0418 in forum C++ Programming
    Replies: 5
    Last Post: 11-26-2006, 08:07 PM
  3. Reading strings input by the user...
    By Cmuppet in forum C Programming
    Replies: 13
    Last Post: 07-21-2004, 06:37 AM
  4. damn strings
    By jmzl666 in forum C Programming
    Replies: 10
    Last Post: 06-24-2002, 02:09 AM
  5. menus and strings
    By garycastillo in forum C Programming
    Replies: 3
    Last Post: 04-29-2002, 11:23 AM