Thread: help!!

  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