Data storage

OK, long story short I'm programming a calculator for Chemistry uses and i need to know the best way of storing mass amounts of data. The data being stored is the physical and chemical traits of the 110 or so elements. I've never built a database before, nor have i programmed anything to read from them. So my quesitons withstands what is the best way of storing mass amounts of data to be read by a program.
closed account (S6k9GNh0)
You can create a class which defines each element.
1
2
3
4
5
6
7
class Element
{
   public:
      char * name;
      int * numElement;
      //etc.
}

Then you can search through elements by name or a member of the class that makes it unique.
Last edited on
I figured creating a class would be easiest. But I thought i might store it all in files. Thank you though. I'll do that.
closed account (S6k9GNh0)
Ah, like a database. That would probably be easiest. You can look into something like MySQL or something like that for a database. It has about the same structure as a class like above but it stores everything via text in an .sql file.
Last edited on
Topic archived. No new replies allowed.