RE: [Dev-C++] Database program (how do i do that?)
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Benjamin L. <bl...@ta...> - 2002-02-13 00:29:49
|
Actually, text is, if anything, less portable than binary. Even between Windows NT and 98 there is a difference in text: NT uses unicode, while 98 uses an 8-bit character. Binary, however, is just a collection of bits in no particular format at all, so it can be ported to any machine at all, and read, as long as the program reading it knows how it is formatted. -BL On 10 Feb 2002 at 19:24, Ioannis Vranos wrote: > > -----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 > > > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |