![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Professional Programmer
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3
![]() |
I have a text file that looks like this:
88 45 65 67 86 67 45 32 67 33 66 44 81 18 70 55 45 75 26 45 etc... each numer in a row needs to be added to a different vector. I was gonna use fstream, get each line with the getline function, then use a split method to split up each line, and then sore each field into the apropriate vector... is there an easier way to do this?
__________________
I am Addicted to Linux! |
|
|
|
|
|
#2 |
|
Professional Programmer
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3
![]() |
I did some research and figured it out
![]()
__________________
I am Addicted to Linux! |
|
|
|
|
|
#3 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Care to tell your fellow members, some of whom might want to have the idea on tap?
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|