Boost logo

Boost Users :

Subject: [Boost-users] boost C++ load data from file
From: Jack Bryan (dtustudy68_at_[hidden])
Date: 2010-07-12 15:04:02

Dear All,
I need to load data (24 X 28 X 40) from 24 X 28 files into a datastructure so that my program can usethem to do operations.
Each file has 40 data items, which are floating numbers.
I hope that the data structure can be indexed by item name not only by integer.
For example, for 24 states in USA, each state's power consumption is POWC in year Y.
I hope that the data structure indexing is like this
My question is :
(1) how to load the data from 24 x 28 files by boost C++?
It is boring to type file's name one by one in program.
Is there an alternative to load the data by indexing the file names ?
for example,
for (filename = name1; filename < filenum ; filename++){ load data from filename; store loaded data in the datastructure.}
(2) how to index the item of the datastructure by boost C++ ?

Any help is appreciated.
July 11 2010
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at