- 1、本文档共17页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
PAGE
PAGE 1
C语言笔记本电脑销售系统课设
项目说明
本系统基于C语言开发,适用于刚入门的C语言新手项目课设,开发软件采用VC++6.0开发,VS,DEV C++等均可运行。(书生)
项目运行截图
开始界面
新建笔记本信息
删除笔记本信息
退出系统
代码界面截图
完整源码
#include stdio.h
#include stdlib.h
#include string.h
#include windows.h
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( | 1.新建笔记本电脑信息
文档评论(0)