julie ann enriquez roque wrote:
> void transaction()
> {FILE * cfPtr;
> int pick;
>
> if((cfPtr=fopen("library.info","r+"))=NULL)
> printf("File could not be opened.\n");
> else{
> while((pick=enterPick())!=4)
> {
> switch(pick)
> {case1:
> borrowedBook(cfPtr);
> break;
> case2:
> returnedBook(cfPtr);
> break;
> case3:
> main();
> break;
> }
> }
> fclose(cfPtr);
> }
> return 0;
> }
>
> -->this one is done by my group.
> this code dont have the one for Transaction...,but still it didn't
> work..,
Not sure what you mean. There is a "transaction()" function in the
code. You need to include the description of what precisely doesn't work.
Also, this sort of program is better done as a web application with a
back-end database (e.g. PHP/MySQL), not a command-line C/C++ program.
--
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197
*NEW* MyTaskFocus 1.1
Get on task. Stay on task.
http://www.CubicleSoft.com/MyTaskFocus/