🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: cis.is89
Article #103

[���i] 1A�p���@�~~~

#103
From: ���ۤv�n������*
Date: Sun, 03 Jun 2001 14:18
56 lines
2770 bytes
A transcation processing program
-using a random access file
-maintain a bank's account information
update
1 name
2 every grade
3 average

*operations
    create a random access file(data is null)
    add new records(accounts)
    delete records(caaounts)
    updates existing records(accounts)
    prints all records in a text file

1   create a random access file sequentially

2   add a record into account-file
get a account#(key files)
let file-position-pointer move to correspond record
read this record (using method seek(....))
make sure this record hasn't data(account = =0)
let file-position-pointermove to this account#������record�B~~
write the data;

3   delete a record from account-file
get a account#(key files)
let file-position-pointer move to correspond record
make sure this record has data(account !=0)
output the data(if neccesary)
let this record change to noneuse

4   update an existing record
get the update record account#
let file-position-pointer���P��account#������record�B
and read this record's data
make sure this record have data(account#1=0)
��J���諸�涵���θ��
let file-position-pointer�@�P��account#������record�B~~
let new data be written into this record

5   print all records in a text file
let file-position-point �����ɮ׶}�l��m
use roop ���ɮ��Y�ܧ� sequentially read data
�T�{�O�_�s�����
if yes,let this record's data write this text file







--
��Post by seal          from 140.113.94.225          
�ѹ��������ŹT�}���q�l�G�i��t����alexbbs.twbbs.org��140.113.166.240
Technical Details
Message-ID: <3gc4H8$4S7@mouse.cis.nctu.edu.tw>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!spring.edu.tw!ctu-peer!news.nctu.edu.tw!News.Math.NCTU.edu.tw!news.cis.nctu.edu.tw!alex

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 104865,4e2d95ecc6fb0485,start
X-Google-Attributes: gid104865,public
X-Google-ArrivalTime: 2001-06-03 08:04:32 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!howland.erols.net!spring.edu.tw!ctu-peer!news.nctu.edu.tw!News.Math.NCTU.edu.tw!news.cis.nctu.edu.tw!alex
From: seal.bbs@mouse.cis.nctu.edu.tw (���ۤv�n������*)
Newsgroups: cis.is89
Subject: [���i] 1A�p���@�~~~
Date: 03 Jun 2001 14:18:31 GMT
Organization: temp
Lines: 56
Message-ID: <3gc4H8$4S7@mouse.cis.nctu.edu.tw>
NNTP-Posting-Host: mouse.cis.nctu.edu.tw
X-Trace: news.cis.nctu.edu.tw 991580444 80801 140.113.166.240 (3 Jun 2001 15:00:44 GMT)
X-Complaints-To: usenet@news.cis.nctu.edu.tw
NNTP-Posting-Date: Sun, 3 Jun 2001 15:00:44 +0000 (UTC)
X-Filename: is89/M.991577912.A