help!!

This is a discussion on help!! within the C++ Programming forums, part of the General Programming Boards category; Hi, I'm kinda new to C++ programming. Anyways my problem is that I want to read in a bunch of ...

  1. #1
    Registered User
    Join Date
    Jan 2003
    Posts
    20

    help!!

    Hi, I'm kinda new to C++ programming. Anyways my problem is that I want to read in a bunch of information from a text doc, but its converted from MS excel and some fields are left blank and I want to keep those fields blank when I read it in to a variable...
    for example:
    my input is something like this

    1 location 3
    1 a hi 4

    I need to assign the information in each field to a different variable so I can do something with them later. So using getline() doesn't really work. Does anyone have any ideas on how to do this?

    Thanks

  2. #2
    Registered User
    Join Date
    Jan 2003
    Posts
    20

    Talking

    hehe, thx. I didn't know that C++ could read anything besides text docs!! hehe, thx

Popular pages Recent additions subscribe to a feed

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