码迷,mamicode.com
首页 > 其他好文
图书管理系统
1从文件操作角度分析。文件的概念以及文件类型指针在c语言中,文件被看成是由一个一个的字符或字节组成的。根据数据的组织形式,文件可分为文本文件和二进制文件两种。文本文件又被称为ASCII文件,文本文件在磁盘中存放时每个字符对应一个字节,用于放其对应的ASCII码。文本文..
分类:其他好文   时间:2016-06-16 08:08:53    阅读次数:271
飞机游戏课
#include<stdio.h>#include<conio.h>#include<stdlib.h>#include<time.h>#defineN35voidprint(int[][N]);//输出函数voidmovebul(int[][N]);//子弹移动函数voidmovepla(int[][N]);//敌机移动函数voidsetting(void);//设置函数voidmenu(void);//菜单函数..
分类:其他好文   时间:2016-06-16 08:09:04    阅读次数:256
宿舍管理作业
*结构体类型*/typedefstruct{intnum;/*宿舍号*/charname[20];/*姓名*/charsex[5];/*性别*/intage;/*年龄*/charstudentclass[20];/*班级*/(使用结构体使一个变量同时表达多个含义)intscore;/*成绩*/}STUDENTS;通过结构体可以使定义后的变量表达多个含义intread_file(STUDENTSs..
分类:其他好文   时间:2016-06-16 08:07:56    阅读次数:264
用一个函数返回参数二进制中1的个数
//题目:写一个函数返回参数二进制中的1的个数 //比如:15000011114个1 //程序原型:intcount_one_bit(unsignedintvalue) //{ ////返回1的个数 //} #include<stdio.h> #include<stdlib.h> intcount_one_bit(unsignedintvalue) { intcount=0; intn; while(n) { if..
分类:其他好文   时间:2016-06-16 08:08:00    阅读次数:284
用一个函数返回参数二进制中1的个数
//题目:写一个函数返回参数二进制中的1的个数 //比如:15000011114个1 //程序原型:intcount_one_bit(unsignedintvalue) //{ ////返回1的个数 //} #include<stdio.h> #include<stdlib.h> intcount_one_bit(unsignedintvalue) { intcount=0; intn; while(n) { if..
分类:其他好文   时间:2016-06-16 08:07:03    阅读次数:176
用一个函数返回参数二进制中1的个数
//题目:写一个函数返回参数二进制中的1的个数 //比如:15000011114个1 //程序原型:intcount_one_bit(unsignedintvalue) //{ ////返回1的个数 //} #include<stdio.h> #include<stdlib.h> intcount_one_bit(unsignedintvalue) { intcount=0; intn; while(n) { if..
分类:其他好文   时间:2016-06-16 08:07:10    阅读次数:148
用一个函数返回参数二进制中1的个数
//题目:写一个函数返回参数二进制中的1的个数 //比如:15000011114个1 //程序原型:intcount_one_bit(unsignedintvalue) //{ ////返回1的个数 //} #include<stdio.h> #include<stdlib.h> intcount_one_bit(unsignedintvalue) { intcount=0; intn; while(n) { if..
分类:其他好文   时间:2016-06-16 08:07:08    阅读次数:155
第二节课作业
#include<stdio.h>#include<stdlib.h>intworkertotal=0;structWORKER{intnum;charname[50];charsex[10];charage[30];chareducation[50];charmoney[10];charaddress[50];charcall[10];}worker[100];voidadd(){intn,i;printf("请输入增加的职工数:");scanf("%d",&am..
分类:其他好文   时间:2016-06-16 08:05:55    阅读次数:238
第一节课作业
1.C语言程序的基本语句能完成功能的体会:通过c语言编写一个射击类的打飞机小游戏,可以通过键盘来进行游戏,操作方法是“a”“d”“w”或者“←”“↑”“→”来控制,击中敌机可获得积分,被敌机撞中死亡一次,每次游戏有3次生还机会,游戏结束后可选择是否重新开始游戏。三...
分类:其他好文   时间:2016-06-16 08:07:24    阅读次数:209
第三节课作业
什么是指针?什么是内存地址?什么叫做指针的取值?指针是一个存储计算机内存地址的变量。从指针指向的内存读取数据称作指针的取值。指针可以指向某些具体类型的变量地址,例如int、long和double。指针也可以是void类型、NULL指针和未初始化指针。根据出现的位置不同,操作符*..
分类:其他好文   时间:2016-06-16 08:08:33    阅读次数:232
Nginx配置文件nginx.conf详解
一.nginx.conf的组成模块如下:events{.................}http{...............Server{................}Server{................}...............https{...............}}二nginx.conf文件详解usernginxnginx;定义nginx运行的用户及用户组worker_processes2;nginx进程数,根据..
分类:其他好文   时间:2016-06-16 08:05:21    阅读次数:1317
Nginx配置文件nginx.conf详解
一.nginx.conf的组成模块如下:events{.................}http{...............Server{................}Server{................}...............https{...............}}二nginx.conf文件详解usernginxnginx;定义nginx运行的用户及用户组worker_processes2;nginx进程数,根据..
分类:其他好文   时间:2016-06-16 08:06:56    阅读次数:179
第二节课作业
#include<stdio.h>#include<stdlib.h>intworkertotal=0;structWORKER{intnum;charname[50];charsex[10];charage[30];chareducation[50];charmoney[10];charaddress[50];charcall[10];}worker[100];voidadd(){intn,i;printf("请输入增加的职工数:");scanf("%d",&am..
分类:其他好文   时间:2016-06-16 08:08:06    阅读次数:202
Nginx配置文件nginx.conf详解
一.nginx.conf的组成模块如下:events{.................}http{...............Server{................}Server{................}...............https{...............}}二nginx.conf文件详解usernginxnginx;定义nginx运行的用户及用户组worker_processes2;nginx进程数,根据..
分类:其他好文   时间:2016-06-16 08:07:38    阅读次数:162
指针与链表结构理解
指针与链表结构理解#include<stdio.h>intmain(void){inta=3,*p;p=&a;printf("a=%d,*p=%d\n",a,*p);*p=10;printf("a=%d,*p=%d\n",a,*p);printf("Entera:");scanf("%d",&a);printf("a=%d,*p=%d\n",a,*p);return0;解析:1.定义整形变量a和整形指针p:inta=3,*p;2.把..
分类:其他好文   时间:2016-06-16 08:06:40    阅读次数:280
飞机大战理解
#include<stdio.h>#include<conio.h>#include<stdlib.h>#include<time.h>#defineN35voidprint(int[][N]);//输出函数voidmovebul(int[][N]);//子弹移动函数voidmovepla(int[][N]);//敌机移动函数voidsetting(void);//设置函数voidmenu(void);//菜单函数..
分类:其他好文   时间:2016-06-16 08:04:58    阅读次数:305
mybatis3.0 配置等值连接两种方式:resultMap和resulttype
<!--namespace:Mpper接口全类名--><mappernamespace="com.zelin.mybatis.one2one.ClassesMapper"> <resultMap> <idproperty="id"column="c_id"> <resultproperty="name"column="c_name" <associationproperty="teacher"javaType="Teac..
分类:其他好文   时间:2016-06-16 08:07:06    阅读次数:347
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!