reusing a 'deleted' record

This is a discussion on reusing a 'deleted' record within the C Programming forums, part of the General Programming Boards category; Sorry I forgot I changed the record filename in the code: If you compile this, you'll need an empty text ...

  1. #16
    Codus Conjectus spongefreddie's Avatar
    Join Date
    Sep 2010
    Location
    USA
    Posts
    82

    Crap!!!

    Sorry I forgot I changed the record filename in the code:

    If you compile this, you'll need an empty text file called "books.dat" not "books.bin"
    Steering Wheel: gcc in Code::Blocks 10.05
    Batmobile: Linux Mint 14, running kernel 3.5 and KDE 4.9.2
    Engine: AMD FX-8350 Vishera 8-core
    Dashboard: NVIDIA GTX 570 HD
    Rusty old trailer for hauling games: Windows XP SP3 (in VirtualBox)
    ORV for composing music: Windows 7 Pro 64bit (in VirtualBox)

  2. #17
    Registered User
    Join Date
    Sep 2006
    Posts
    8,868
    Time well spent, though. Look at what is in this program:

    structs
    array of structs
    Insertion sort of strings (I've never coded this one up before)
    binary search
    file IO, including making a back up file.
    safer data entry from user
    record "addition" and "deletion" via field editing
    menu system

    That is a lot to take on, in just a few days.

Page 2 of 2 FirstFirst 12
Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 7
    Last Post: 10-09-2009, 06:27 AM
  2. Help with binary file c++
    By lucky_mutani in forum C++ Programming
    Replies: 4
    Last Post: 06-05-2009, 09:24 AM
  3. Inventory records
    By jsbeckton in forum C Programming
    Replies: 23
    Last Post: 06-28-2007, 04:14 AM
  4. Contest Results - May 27, 2002
    By ygfperson in forum A Brief History of Cprogramming.com
    Replies: 18
    Last Post: 06-18-2002, 01:27 PM
  5. behind and confused
    By steviecrawf in forum C Programming
    Replies: 1
    Last Post: 11-09-2001, 11:51 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21