This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
#include "xitong.h"
int main(void) {
YinhangXitong *xitong;
xitong = (YinhangXitong *)malloc(sizeof(YinhangXitong)); /* 系统总对象改为堆分配,避免main栈溢出 */
if (xitong == NULL) {
printf("内存分配失败,程序无法启动。\n");
return 1;
}
chushihuaxitong(xitong); /* 初始化系统内存数据 */
jiazaisuoyoushuju(xitong); /* 从测试数据文本加载业务数据 */
zhucaidan(xitong); /* 进入主菜单循环 */
free(xitong); /* 退出前释放堆内存 */
return 0;