data storage
-
If you know STL, vector would handle your needs.
A C++ programming language novice, but striving to learn
Thank You so much.... That Was a GREAT Answer.....
-
hi all.... I Need 2 Store the EMPLOYEE INFO of a COMPANY.... im not allowed to use DATABASE... what else can i use? I Can Use FILES.... Other than Files What all Can I Use... Ive To Code In VC++ MFC
You can use of text files or use of xml files or pdf files.
-
If you know STL, vector would handle your needs.
A C++ programming language novice, but striving to learn
When I went through STL VECTOR.... I found Another one too... That can be used for the same.... STL MAP
-
When I went through STL VECTOR.... I found Another one too... That can be used for the same.... STL MAP
Read the information in MSDN on the different "containers", ie, vector, list quene(MS?),map and muti-Map. Then you can make an informative decision as to which "container" will suit your needs. Enjoy!!
A C++ programming language novice, but striving to learn
-
When I went through STL VECTOR.... I found Another one too... That can be used for the same.... STL MAP
If you email me directly (larryamillssr@hughes.net) I'll send you some production code showing you how to create a vector, use that vector, save that vector's data and how to retrieve it back and put it into a vector.
A C++ programming language novice, but striving to learn
-
If you email me directly (larryamillssr@hughes.net) I'll send you some production code showing you how to create a vector, use that vector, save that vector's data and how to retrieve it back and put it into a vector.
A C++ programming language novice, but striving to learn
It stores data only temporarily
-
anna mathew wrote:
Other than Files What all Can I Use...
PAPER. :)
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]in INI file i can store data in a proper method like in database... is there something else...i mean any other file... that can store data in a PARTICULAR FORMAT?
-
in INI file i can store data in a proper method like in database... is there something else...i mean any other file... that can store data in a PARTICULAR FORMAT?
There are a lot of options, depending on many factors. You may for instance use a
XML
file. If you need to be compact (XML
is verbose) you may choose a (custom) binary file (if you're usingMFC
, have a look atSerialization in MFC
[^] topic.SQLite
[^] being serverless, maybe another option. ... Bottom line: there are a lot of options, you've to be more detailed in your requirements to end up with the proper solution. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
There are a lot of options, depending on many factors. You may for instance use a
XML
file. If you need to be compact (XML
is verbose) you may choose a (custom) binary file (if you're usingMFC
, have a look atSerialization in MFC
[^] topic.SQLite
[^] being serverless, maybe another option. ... Bottom line: there are a lot of options, you've to be more detailed in your requirements to end up with the proper solution. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]Thank you 4 your reply... XML is a good choice...but little complicated with MFC... Heard INI files is a good choice... Can u tell me how to do it? I mean HOW TO WRITE EMPLOYEE INFO OF A COMPANY to INI file..... and read it back
-
Thank you 4 your reply... XML is a good choice...but little complicated with MFC... Heard INI files is a good choice... Can u tell me how to do it? I mean HOW TO WRITE EMPLOYEE INFO OF A COMPANY to INI file..... and read it back
anna mathew wrote:
XML is a good choice...but little complicated with MFC...
You may use
MSXML
or other libraries, there are lot of them around.anna mathew wrote:
Heard INI files is a good choice...
Serialization is far better. Anyway, if you want to use INI files, then you have use the functions (
GetPrivateProfileInt
,...) listed at the bottom of this page [^]. Check out also this article [^]. :)If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]