Slide 7.2: Variable-length record addition demonstrations (cont.)
Slide 7.4: EnterBook.cpp
Home

Variable-Length Record Addition Demos (Cont.)


The following interface is displayed after the button Start processing of the previous interface is clicked on.

  Enter Books or Show File Content and Size.
  Enter books
Help
Show file content and size





  Password:                    

The button Show file content and size is implemented by using the following commands:
   elsif ( $FORM{select} eq "show" ) {
     system( "cat books.txt; echo '\n'; wc books.txt" );
   }
The wc prints the number of bytes, words, and lines in files. The interface below is displayed after the button Enter books is clicked on.

  Enter Book Information.

  Title:  

  ISBN (Required):  

  Price:  

  Quantity:  







  Password:                    

The implementation of insertion will be given in the following slides. The operations deletion and update will not be discussed here. You may use the files avail1.txt or avail2.txt directly in the demonstrations.