RE: [Dev-C++] Database program (how do i do that?)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Ioannis V. <no...@ya...> - 2002-02-10 17:25:05
|
> -----Original Message----- > From: dev...@li... > [mailto:dev...@li...] On Behalf > Of Flavio de Souza > Sent: Sunday, February 10, 2002 4:08 PM > To: Dev-cpp > Subject: [Dev-C++] Database program (how do i do that?) > > > Hey Listers: > > I am trying to learn cpp and I am trying to do a simple > application with a database ( just to hold some notes, > comments, etc ). > > I have seen around some .dat files, and they seem to be a txt > file. I know that cpp can create binary file as well. > > Actually, I do not know how to start, then I got a few questions: > > 1) Which one is better txt or binary? (In my application all > the data is just text ) If you want portability, only text is portable.That is it can be read in all platforms. The catch is that text occupies more space. > 2) How do I create a database with txt files or binary files? In C or C++? > Any suggestions or a good tutorial in the web? > 3) Once it was created, how do I perform a search in > database? Do I need an index table? (I don't even know how to do this) You will think a way. It depends on various factors, what searches you will do, if you keep your records sorted ans by which criteria e.t.c.. > > I got other questions, but I think I'll start with the basic ones. > > I'd appreciate some help with this. I have been studying cpp > and I have passed through all those boring tutorials about > language basics. Now I want to do a real > application, simple, but real ! I also suggest "The C++ Programming Language" 3rd Edition or Special Edition by Bjarne Stroustrup the creator of C++. Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.d2g.com * Alternative URL: http://run.to/noicys |