#include <stdio.h>
#include <stdlib.h>
long size;
struct LongData
{
long logid;
char longdate[15];
char longnote[11];
double charge;
double balance;
};
int inputchoice()
{
int mychoice;
printf("\nEnter your choice:\n");
printf("1-Add a new cash LOG.\n2-List All Cash LOG.\n");
pritnf("3-Query Last Cash LOG.\n0-End program.\n");
scanf("%d", &mychoice);
return mychoice;
}
long getLogcount(FILE *cfptr)
{
long begin, end, logcount;
fseek(cfptr, 0L, SEEK_SET);
begin = ftell(cfptr);
fseek(cfptr, size, SEEK_END);
end = ftell(cfptr);
logcount = (end - begin) / size - 1;
资金管理系统示例
最新推荐文章于 2024-09-02 15:56:44 发布