600字范文,内容丰富有趣,生活中的好帮手!
600字范文 > 电脑报价管理系统C语言 C语言笔记本电脑销售系统课设(附源码).doc

电脑报价管理系统C语言 C语言笔记本电脑销售系统课设(附源码).doc

时间:2021-09-06 12:26:00

相关推荐

电脑报价管理系统C语言 C语言笔记本电脑销售系统课设(附源码).doc

PAGE

PAGE 1

C语言笔记本电脑销售系统课设

项目说明

本系统基于C语言开发,适用于刚入门的C语言新手项目课设,开发软件采用VC++6.0开发,VS,DEV C++等均可运行。(书生)

项目运行截图

开始界面

新建笔记本信息

删除笔记本信息

退出系统

代码界面截图

完整源码

#include

#include

#include

#include

struct Computer

{

char Name[100];

char Brand[100];

char Type[100];

int Sell_quantity;

float Purchase_price;

int Remain_quantity;

float Sell_price;

float total_money;

struct Computer *next;

};

#define LEN sizeof(struct Computer)

void CREAT(void);

void MENU(void);

void FIND(struct Computer *head);

void SAVE(struct Computer *head);

void ADD(struct Computer *head);

void CHANGE(struct Computer *head);

void DELETe(struct Computer *head);

void HIGH(struct Computer *head);

void SEARCH(struct Computer *head);

void SELL(struct Computer *head);

int main()

{

int number,count;

FILE *fp;

system("mode con cols=120 lines=100"); // 行 列

system("color F0");

printf("\n欢迎进入笔记本电脑销售管理系统\n");

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0xFC);

printf(" 版本型号: V2.1.5\n");

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0xF0);

printf("·准备好后请按回车键开始(请不要乱按其他键,否则会造成程序错误)\n");

printf("·Please enter the Enter key to start!");

getchar();

if((fp = fopen("SellRecord.txt","rb"))==NULL)

{

printf(" ++\n\n");

printf(" | 提示:您是第一次使用该系统,请先录入笔记销售信息! |\n\n");

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0xF9);

printf(" | ·服务编号: |\n\n");

SetConsoleTextAttribute(GetStdHandle(STD_OUTPUT_HANDLE),0xF2);

printf(" |

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。