ImageVerifierCode 换一换
格式:DOCX , 页数:21 ,大小:841.32KB ,
资源ID:15722100      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/15722100.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(基于VC的滚动轴承信息录入与查询系统文档格式.docx)为本站会员(b****3)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

基于VC的滚动轴承信息录入与查询系统文档格式.docx

1、2.The Structure of Design2.1 Operation platform and development environmentThis procedure is in the Microsoft Visual C+ software platform has compiled, integrated development environment, can provide the editor C language, C+ and C+/CLI programming language.The integration of VC+ convenient debuggin

2、g tools, especially the integration of the Microsoft Windows programming (Windows API), 3D animation DirectX API, Microsoft.NET framework.2.2 System structureAbove the synthesis analysis and development features of the platform, I decided to adopt the structure of data structure, the bearing design

3、for basic information data structure data, used to store multiple bearing information, the bearing inside diameter, outside diameter, width of models, such as data as the members of the structure, so as to realize the correspondence between the input and output of information.Figure 2-13.Program3.1

4、Flow chartImplementation of this function is mainly uses the switch statement.The first printf function in the operation of the interface type bearing inquiry system and functional module and its corresponding digital option.Then enter the operations to be performed by the switch statement options,

5、judge, and then into the different functions, different operation.Of course, to after an operation to call the menu function, is convenient for users to carry out an operation line.3.2 The contents of the programVC+6.0 environment compilerFigure 3-1Detailed C language program as follows#define N 100

6、#include /*头文件*/string.hstdlib.hstruct bearing /*数据结构定义*/ char num5; /*轴承型号*/ char d14; /*内径*/ char d24; /*外径*/ char b4; /*宽度*/ char da14; /*damin*/ char da24; /*Damax*/ char cr5; /*基本额定静载荷/kN*/ char nr6; /*极限转速/(r/min)油润滑*/bearingsN;void printf_face() /*表头函数*/ printf(轴承型号 内径 外径 宽度 damin Damax 基本额定静

7、载荷/kN 极限转速/(r/min)油润滑n);/*输入模块*/void enter() int i,n; /*i是for循环里的循环变量。n是轴承的数目*/ void menu(); /*申明主函数*/ void input(int k); /*申明输入函数*/ void save(int k); /*申明保存函数*/要输入的轴承数量:,N-1); scanf(%d,&n); /*要输入轴承信息的数目*/n输入轴承信息资料nn for(i=0;in;i+) n 输入第%d个轴承信息资料.n,i+1); input(i); /*输入函数*/ if(i!=0)save(n); /*保存函数*/按

8、任何键返回n getchar(); /*返回*/ menu();void input(int i) /*输入函数*/ printf_face();%s%s%s%s%s%s%s%s,bearingsi.num,bearingsi.d1,bearingsi.d2,bearingsi.b,bearingsi.da1,bearingsi.da2,bearingsi.cr,bearingsi.nr);void save(int n) /*保存函数*/ FILE *fp; int i; if(fp=fopen(bearing.txt,wb)=NULL)未录入此型号轴承n if(fwrite(&bearin

9、gsi,sizeof(struct bearing),1,fp)!=1)输入错误n fclose(fp);/*浏览模块*/void browse() int k; /*表示文件中有k种轴承*/ int load(); /*申明打开文件函数*/ void printf_bearings(int n); /*申明输出函数(包含表头)*/ k=load(); printf_bearings(k); /*输出k种轴承信息(包含表头)*/void printf_one(int i) /*输出函数*/printf(%5s %5s %5s %5s %5s %5s %5s %5snnvoid printf_b

10、earings(int n) /*输出函数(包含表头)*/ int j; for(j=0;jj+) printf_one(j);int load() /*打开文件函数*/ rbn未录入此型号轴承n return 0;!feof(fp); fread(&bearingsi,sizeof(struct bearing),1,fp); return(i-1);void search_by_d1() struct bearing s; int n,i,k=0; void printf_one(int i); n=load();请输入内径: %ss.d1);printf_face(); if(strcmp(s.d1,bearingsi.d1)=0) printf_one(i); k=1; if(k=0)printf(n未录入此型号轴承!nvoid search_by_d2()请输入外径:s.d2); if(strcmp(s.d2,bearingsi.d2)=0)void search_by_num()请输入轴承型号:s.num);printf

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1