C语言课程设计—图书管理系统
这是本人大一第二学期初C语言课程设计的作品,嘿嘿,本来以为已经找不到原稿了,今天无意中居然在QQ网络硬盘中找到了当初的teta版,公布于此,以作纪念。

C源码例如以下:
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
struct book{
char book_name[30];
int bianhao;
double price;
char author[20];
char state[20];
char name[20];
char sex[10];
int xuehao;
struct book *book_next;
};
struct club{
char name[20];
char sex[10];
int xuehao;
char borrow[30];
struct club *club_next;
};
void Print_Book(struct book *head_book);/*浏览全部图书信息*/
void Print_Club(struct club *head_club);/*浏览全部会员信息*/
struct book *Create_New_Book();/*创建新的图书库,图书编号输入为0时结束*/
struct book *Search_Book_bianhao(int bianhao,struct book *head_book);
struct book *Search_Book_name(char *b_name,struct book *head_book);
struct book *Search_Book_price(double price_h,double price_l,struct book *head_book);
struct book *Insert_Book(struct book *head_book,struct book *stud_book);/*添加图书,逐个加入*/
struct book *Delete_Book(struct book *head_book,int bianhao);/*删除图书*/
struct club *Create_New_Club();
struct club *Search_Club_xuehao(int xuehao,struct club *head_club);
struct club *Search_Club_name(char *c_name,struct club *head_club);
struct club *Insert_Club(struct club *head_club,struct club *stud_club);
struct club *Delete_Club(struct club *head_club,int xuehao);
struct book *Lent_Book(int bianhao,int xuehao,struct book *head_book,struct club *head_club);
struct book *back(int bianhao,int xuehao,struct book *head_book,struct club *head_club);
int main()
{
struct book *head_book,*p_book;
char book_name[30],name[20],author[20],sex[10];
int bianhao;
double price,price_h,price_l;
int size_book=sizeof(struct book);
int m=1,n=1,f;
char *b_name,*c_name;
struct club *head_club,*p_club;
int xuehao;
int size_club=sizeof(struct club);
int choice;
printf("/n欢迎您第一次进入图书管理系统!/n/n");
printf("----->[向导]----->[新建图书库]/n/n");
printf("注意:当输入图书编号为0时,进入下一步./n/n");
head_book=Create_New_Book();
system("cls");
printf("/n欢迎您第一次进入图书管理系统!/n/n");
printf("----->[向导]----->[新建会员库]/n/n");
printf("注意:当输入会员学号为0时,进入主菜单./n/n");
head_club=Create_New_Club();
system("cls");
do{
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("/n");
printf("/t/t/t[1]:借书办理/t");printf(" [6]:还书办理/n");
printf("/n");
printf("/t/t/t[2]:查询图书/t");printf(" [7]:查询会员/n");
printf("/t/t/t[3]:加入图书/t");printf(" [8]:加入会员/n");
printf("/t/t/t[4]:删除图书/t");printf(" [9]:删除会员/n");
printf("/t/t/t[5]:遍历图书/t");printf("[10]:遍历会员/n/n");
printf("/t/t/t〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓〓/n/n");
printf("/t/t/t0:退出/n/n");
printf("请选择<0~10>:");
scanf("%d",&choice);
switch(choice){
case 1:
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("输入所借图书编号:/n");
scanf("%d",&bianhao);
printf("输入借书人的学号:/n");
scanf("%d",&xuehao);
head_book=Lent_Book(bianhao,xuehao,head_book,head_club);
system("cls");
printf("/n借阅成功!/n/n");
printf("相关信息例如以下:/n/n");
head_book=Search_Book_bianhao(bianhao,head_book);
break;
case 2:
system("cls");
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("1.按编号查询/n/n");
printf("2.按名称查询/n/n");
printf("3.按价格区间查询/n/n");
printf("0.返回主菜单/n/n");
printf("请选择:");
scanf("%d",&f);
if(f==1){
printf("请输入查询图书编号:");
scanf("%d",&bianhao);
printf("相关信息例如以下:/n/n");
head_book=Search_Book_bianhao(bianhao,head_book);
break;
}
else if(f==2){
b_name=book_name;
getchar();
printf("请输入查询图书名称:");
gets(b_name);
printf("相关信息例如以下:/n/n");
head_book=Search_Book_name(b_name,head_book);
break;
}
else if(f==3){
printf("请输入最高价格:");
scanf("%lf",&price_h);
printf("请输入最低价格:");
scanf("%lf",&price_l);
printf("相关信息例如以下:/n/n");
head_book=Search_Book_price(price_h,price_l,head_book);
break;
}
else if(f==0){
break;
}
break;
case 6:
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("输入所还图书编号:/n");
scanf("%d",&bianhao);
printf("输入还书人的学号:/n");
scanf("%d",&xuehao);
head_book=back(bianhao,xuehao,head_book,head_club);
system("cls");
printf("/n归还成功!/n/n");
printf("相关信息例如以下:/n/n");
head_book=Search_Book_bianhao(bianhao,head_book);
break;
case 3:
system("cls");
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("请输入图书名称:");
scanf("%s",book_name);
printf("请输入图书编号:");
scanf("%d",&bianhao);
printf("请输入单位价格:");
scanf("%lf",&price);
printf("请输入作者名字:");
scanf("%s",author);
printf("/n");
struct book *ptr_b;
for(ptr_b=head_book;ptr_b;ptr_b=ptr_b->book_next)
{
if(ptr_b->bianhao==bianhao)
{
printf("此编号图书已存在/n");
m=0;
break;
}
}
if(m){
p_book=(struct book *)malloc(size_book);
strcpy(p_book->book_name,book_name);
p_book->bianhao=bianhao;
p_book->price=price;
p_book->xuehao=0;
strcpy(p_book->author,author);
strcpy(p_book->state,"存在");
strcpy(p_book->sex,"待定");
strcpy(p_book->name,"待定");
head_book=Insert_Book(head_book,p_book);
printf("/n加入图书成功!/n/n");
}
break;
case 4:
system("cls");
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("输入删除图书编号:/n");
scanf("%d",&bianhao);
head_book=Delete_Book(head_book,bianhao);
printf("/n删除图书成功!/n/n");
break;
case 5:
system("cls");
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
Print_Book(head_book);
break;
case 7:
system("cls");
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("1.按学号查询/n/n");
printf("2.按姓名查询/n/n");
printf("0.返回主菜单/n/n");
printf("请选择:");
scanf("%d",&f);
if(f==1){
printf("请输入查询会员学号:");
scanf("%d",&xuehao);
printf("相关信息例如以下:/n/n");
head_club=Search_Club_xuehao(xuehao,head_club);
break;
}
else if(f==2){
c_name=name;
getchar();
printf("请输入查询会员姓名:");
gets(c_name);
printf("相关信息例如以下:/n/n");
head_club=Search_Club_name(c_name,head_club);
break;
}
else if(f==0){
break;
}
break;
printf("请输入查询会员学号:/n");
scanf("%d",&xuehao);
printf("相关信息例如以下:/n/n");
break;
case 8:
system("cls");
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("请输入会员名字:");
scanf("%s",name);
printf("请输入会员性别:");
scanf("%s",sex);
printf("请输入会员学号:");
scanf("%d",&xuehao);
printf("/n");
struct club *ptr_c;
for(ptr_c=head_club;ptr_c;ptr_c=ptr_c->club_next)
{
if(ptr_c->xuehao==xuehao)
{
printf("此学号会员已存在/n");
n=0;
break;
}
}
if(n){
p_club=(struct club *)malloc(sizeof(struct club));
strcpy(p_club->name,name);
strcpy(p_club->sex,sex);
p_club->xuehao=xuehao;
strcpy(p_club->borrow,"暂无");
head_club=Insert_Club(head_club,p_club);
printf("/n加入会员成功!/n/n");
}
break;
case 9:
system("cls");
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("输入要删除会员学号:/n");
scanf("%d",&xuehao);
head_club=Delete_Club(head_club,xuehao);
printf("/n删除会员成功!/n/n");
break;
case 10:
system("cls");
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
Print_Club(head_club);
break;
case 0:
system("cls");
printf("/n/t/t/t〓〓〓〓〓图书管理系统〓〓〓〓〓/n/n");
printf("/n谢谢您的使用!/n/n");
break;
}
}while(choice!=0);
return 0;
}
struct book *Create_New_Book()
{
struct book *head_book,*p_book;
int bianhao;
double price;
char book_name[30],author[20];
int size_book=sizeof(struct book);
head_book=NULL;
printf("请输入图书名称:");
scanf("%s",book_name);
printf("请输入图书编号:");
scanf("%d",&bianhao);
printf("请输入单位价格:");
scanf("%lf",&price);
printf("请输入作者名字:");
scanf("%s",author);
printf("/n");
while(bianhao!=0){
p_book=(struct book *)malloc(size_book);
strcpy(p_book->book_name,book_name);
p_book->bianhao=bianhao;
p_book->price=price;
p_book->xuehao=0;
strcpy(p_book->author,author);
strcpy(p_book->state,"存在");
strcpy(p_book->sex,"待定");
strcpy(p_book->name,"待定");
head_book=Insert_Book(head_book,p_book);
printf("请输入图书名称:");
scanf("%s",book_name);
printf("请输入图书编号:");
scanf("%d",&bianhao);
printf("请输入单位价格:");
scanf("%lf",&price);
printf("请输入作者名字:");
scanf("%s",author);
printf("/n");
}
return head_book;
}
struct book *Search_Book_bianhao(int bianhao,struct book *head_book)
{
struct book *ptr_book;
int flag=0;
for(ptr_book=head_book;ptr_book;ptr_book=ptr_book->book_next)
{
if(ptr_book->bianhao==bianhao){
printf("图书编号:%d/n",ptr_book->bianhao);
printf("图书名称:%s/n",ptr_book->book_name);
printf("图书单位价格:%.2lf/n",ptr_book->price);
printf("图书作者:%s/n",ptr_book->author);
printf("存在状态:%s/n",ptr_book->state);
printf("借书人姓名:%s/n",ptr_book->name);
printf("借书人性别:%s/n",ptr_book->sex);
printf("学号:%d/n",ptr_book->xuehao);
printf("/n");
flag++;
}
}
if(flag==0){
printf("暂无此图书信息!/n/n");
}
return head_book;
}
struct book *Search_Book_name(char *b_name,struct book *head_book)
{
struct book *ptr_book;
int flag=0;
for(ptr_book=head_book;ptr_book;ptr_book=ptr_book->book_next)
{
if(strcmp(ptr_book->book_name,b_name)==0){
printf("图书编号:%d/n",ptr_book->bianhao);
printf("图书名称:%s/n",ptr_book->book_name);
printf("图书单位价格:%.2lf/n",ptr_book->price);
printf("图书作者:%s/n",ptr_book->author);
printf("存在状态:%s/n",ptr_book->state);
printf("借书人姓名:%s/n",ptr_book->name);
printf("借书人性别:%s/n",ptr_book->sex);
printf("学号:%d/n",ptr_book->xuehao);
printf("/n");
flag++;
}
}
if(flag==0){
printf("暂无此图书信息!/n/n");
}
return head_book;
}
struct book *Search_Book_price(double price_h,double price_l,struct book *head_book)
{
struct book *ptr_book;
int flag=0;
for(ptr_book=head_book;ptr_book;ptr_book=ptr_book->book_next)
{
if((ptr_book->price>=price_l)&&(ptr_book->price<=price_h)){
printf("图书编号:%d/n",ptr_book->bianhao);
printf("图书名称:%s/n",ptr_book->book_name);
printf("图书单位价格:%.2lf/n",ptr_book->price);
printf("图书作者:%s/n",ptr_book->author);
printf("存在状态:%s/n",ptr_book->state);
printf("借书人姓名:%s/n",ptr_book->name);
printf("借书人性别:%s/n",ptr_book->sex);
printf("学号:%d/n",ptr_book->xuehao);
printf("/n");
flag++;
}
}
if(flag==0){
printf("暂无此图书信息!/n/n");
}
return head_book;
}
struct book *Delete_Book(struct book *head_book,int bianhao)
{
struct book *ptr1_book,*ptr2_book;
while(head_book!=NULL && head_book->bianhao==bianhao){
ptr2_book=head_book;
head_book=head_book->book_next;
free(ptr2_book);
}
if(head_book==NULL)
return NULL;
ptr1_book=head_book;
ptr2_book=head_book->book_next;
while(ptr2_book!=NULL){
if(ptr2_book->bianhao==bianhao){
ptr1_book->book_next=ptr2_book->book_next;
free(ptr2_book);
}
else
ptr1_book=ptr2_book;
ptr2_book=ptr1_book->book_next;
}
return head_book;
}
struct club *Create_New_Club()
{
struct club *head_club,*p_club;
int xuehao;
char name[20],sex[10];
int size_club=sizeof(struct club);
head_club=NULL;
printf("请输入会员名字:");
scanf("%s",name);
printf("请输入会员性别:");
scanf("%s",sex);
printf("请输入会员学号:");
scanf("%d",&xuehao);
printf("/n");
while(xuehao!=0){
p_club=(struct club *)malloc(size_club);
strcpy(p_club->name,name);
strcpy(p_club->sex,sex);
p_club->xuehao=xuehao;
strcpy(p_club->borrow,"暂无");
head_club=Insert_Club(head_club,p_club);
printf("请输入会员名字:");
scanf("%s",name);
printf("请输入会员性别:");
scanf("%s",sex);
printf("请输入会员学号:");
scanf("%d",&xuehao);
printf("/n");
}
return head_club;
}
struct club *Search_Club_xuehao(int xuehao,struct club *head_club)
{
struct club *ptr_club;
int flag=0;
for(ptr_club=head_club;ptr_club;ptr_club=ptr_club->club_next)
{
if(ptr_club->xuehao==xuehao){
printf("会员姓名:%s/n",ptr_club->name);
printf("会员性别:%s/n",ptr_club->sex);
printf("会员学号:%d/n",ptr_club->xuehao);
printf("所借图书:%s/n",ptr_club->borrow);
printf("/n");
flag++;
}
}
if(flag==0){
printf("此用户不存在!/n/n");
}
return head_club;
}
struct club *Search_Club_name(char *c_name,struct club *head_club)
{
struct club *ptr_club;
int flag=0;
for(ptr_club=head_club;ptr_club;ptr_club=ptr_club->club_next)
{
if(strcmp(ptr_club->name,c_name)==0){
printf("会员姓名:%s/n",ptr_club->name);
printf("会员性别:%s/n",ptr_club->sex);
printf("会员学号:%d/n",ptr_club->xuehao);
printf("所借图书:%s/n",ptr_club->borrow);
printf("/n");
flag++;
}
}
if(flag==0){
printf("此用户不存在!/n/n");
}
return head_club;
}
struct book *Lent_Book(int bianhao,int xuehao,struct book *head_book,struct club *head_club)
{
struct book *ptr_book;
struct club *ptr_club;
int flag=0;
for(ptr_book=head_book;ptr_book;ptr_book=ptr_book->book_next)
for(ptr_club=head_club;ptr_club;ptr_club=ptr_club->club_next)
{
if((ptr_book->bianhao==bianhao)&&(ptr_club->xuehao==xuehao))
{
strcpy(ptr_book->name,ptr_club->name); /*字符串的复制,把右边的内容拷贝到左边*/
strcpy(ptr_book->sex,ptr_club->sex);
ptr_book->xuehao=ptr_club->xuehao;
strcpy(ptr_book->state,"暂无");
strcpy(ptr_club->borrow,ptr_book->book_name);
flag++;
}
if(flag==0){
printf("暂无此图书或您还未注冊为会员!/n/n");
}
}
return head_book;
}
struct book *back(int bianhao,int xuehao,struct book *head_book,struct club *head_club)
{
struct book *ptr_book;
struct club *ptr_club;
int flag=0;
for(ptr_book=head_book;ptr_book;ptr_book=ptr_book->book_next)
for(ptr_club=head_club;ptr_club;ptr_club=ptr_club->club_next)
{
if((ptr_book->bianhao==bianhao) && (ptr_club->xuehao==xuehao))
{
strcpy(ptr_book->name,"暂无");
strcpy(ptr_book->sex,"待定");
ptr_book->xuehao=0;
strcpy(ptr_book->state,"暂无");
strcpy(ptr_club->borrow,"暂无");
flag++;
}
if(flag==0){
printf("输入有误,请重试/n/n");
}
}
return head_book;
}
struct book *Insert_Book(struct book *head_book,struct book *stud_book)
{
struct book *ptr_b,*ptr1_b,*ptr2_b;
ptr2_b=head_book;
ptr_b=stud_book;
if(head_book==NULL){
head_book=ptr_b;
head_book->book_next=NULL;
}
else{
while((ptr_b->bianhao > ptr2_b->bianhao) && (ptr2_b->book_next!=NULL)){
ptr1_b=ptr2_b;
ptr2_b=ptr2_b->book_next;
}
if(ptr_b->bianhao <= ptr2_b->bianhao){
if(head_book==ptr2_b) head_book=ptr_b;
else ptr1_b->book_next=ptr_b;
ptr_b->book_next=ptr2_b;
}
else{
ptr2_b->book_next=ptr_b;
ptr_b->book_next=NULL;
}
}
return head_book;
}
struct club *Insert_Club(struct club *head_club,struct club *stud_club)
{
struct club *ptr_c,*ptr1_c,*ptr2_c;
ptr2_c=head_club;
ptr_c=stud_club;
if(head_club==NULL){
head_club=ptr_c;
head_club->club_next=NULL;
}
else{
while((ptr_c->xuehao > ptr2_c->xuehao) && (ptr2_c->club_next!=NULL)){
ptr1_c=ptr2_c;
ptr2_c=ptr2_c->club_next;
}
if(ptr_c->xuehao <= ptr2_c->xuehao){
if(head_club==ptr2_c) head_club=ptr_c;
else ptr1_c->club_next=ptr_c;
ptr_c->club_next=ptr2_c;
}
else{
ptr2_c->club_next=ptr_c;
ptr_c->club_next=NULL;
}
}
return head_club;
}
void Print_Club(struct club *head_club)
{
struct club *ptr_c;
if(head_club==NULL){
printf("/n无记录/n/n");
return;
}
printf("/n会员姓名/t会员性别/t会员学号/n/n");
for(ptr_c=head_club;ptr_c;ptr_c=ptr_c->club_next)
printf("%s/t/t%s/t/t%d/n",ptr_c->name,ptr_c->sex,ptr_c->xuehao);
}
struct club *Delete_Club(struct club *head_club,int xuehao)
{
struct club *ptr1_club,*ptr2_club;
while(head_club!=NULL && head_club->xuehao==xuehao){
ptr2_club=head_club;
head_club=head_club->club_next;
free(ptr2_club);
}
if(head_club==NULL)
return NULL;
ptr1_club=head_club;
ptr2_club=head_club->club_next;
while(ptr2_club!=NULL){
if(ptr2_club->xuehao==xuehao){
ptr1_club->club_next=ptr2_club->club_next;
free(ptr2_club);
}
else
ptr1_club=ptr2_club;
ptr2_club=ptr1_club->club_next;
}
return head_club;
}
void Print_Book(struct book *head_book)
{
struct book *ptr_b;
if(head_book==NULL){
printf("/n无记录/n/n");
return;
}
printf("/n图书编号/t图书名称/t图书单位价格/t图书作者/n/n");
for(ptr_b=head_book;ptr_b;ptr_b=ptr_b->book_next)
printf("%d/t/t%s/t/t%.2lf/t/t%s/n/n",ptr_b->bianhao,ptr_b->book_name,ptr_b->price,ptr_b->author);
}
C语言课程设计—图书管理系统的更多相关文章
- C语言课程设计(成绩管理系统)
C语言课程设计(成绩管理系统) 翻到了大学写的C语言课程设计,缅怀一下 内容: 增加学生成绩 查询学生成绩 删除 按照学生成绩进行排序 等 #include <stdio.h> #incl ...
- c语言课程设计--图书/音乐管理系统
这个代码因为配置信息的原因不能直接整个拿去用(o゜▽゜)o☆ 这个代码因为配置信息的原因不能直接整个拿去用(o゜▽゜)o☆ 这个代码因为配置信息的原因不能直接整个拿去用(o゜▽゜)o☆ 只能提供一个思 ...
- 学生管理系统-火车订票系统 c语言课程设计
概要: C 语言课程设计一---学生管理系统 使使用 C 语言实现学生管理系统.系统实现对学生的基本信息和考试成绩的 管理.采用终端命令界面,作为系统的输入输出界面.采用文件作为信息存储介质. 功能描 ...
- C++课程设计 通讯录管理系统 原码及解析
设计题目:通信录管理系统 用C++设计出模拟手机通信录管理系统,实现对手机中的通信录进行管理. (一)功能要求 查看功能:选择此功能时,列出下列三类选择. A 办公类B 个人类C 商务类,当选中某类时 ...
- Java语言课程设计——博客作业教学数据分析系统(201521123107 张翔)
#Java语言课程设计--博客作业教学数据分析系统(个人博客) 1.团队课程设计博客链接 [博客作业教学数据分析系统(From:网络五条狗)](http://www.cnblogs.com/fanta ...
- C语言课程设计
目录 实现目的 游戏玩法介绍 实现流程与作品架构 任务列表及贡献度 总结感想 作品源码与仓库地址(附页) 资料引用与出处(附页) 实现目的 2048,作为一款极其经典的游戏,从发行到现在,已经有了极多 ...
- [C基础修炼] [C课程设计]C语言课程设计之图书管理系统
#include <stdio.h> #include <stdlib.h> #include <string.h> FILE *fp;//定义文件指针fp,指向文 ...
- 大一C语言课程设计——班级档案管理系统
记录我在大一第二学期期末做的C语言课程毕业设计 1. 班级档案管理系统运用到的主要结构体 typedef struct birthday //出生日期{int year;int month;int d ...
- java课程设计 学生管理系统
学生成绩管理系统 可实现功能 学生管理系统 查询学生信息:姓名.学号.性别.出生年月日.(学号自动生成且唯一) 查询学生成绩:每个人都有数学.Java与体育与选修课 查询学生课程 进行公选课选课 教师 ...
随机推荐
- hdu 4501 小明系列故事——买年货_二维背包
题目:你可以有v1元,v2代金券,v3个物品免单,现在有n个商品,商品能用纸币或者代金券购买,当然你可以买v3个商品免费.问怎么最大能买多少价值 题意: 思路二维背包,dp[v1][v2][v3]=M ...
- Python的ASCII, GB2312, Unicode , UTF-8 相互转换
ASCII 是一种字符集,包括大小写的英文字母.数字.控制字符等,它用一个字节表示,范围是 0-127 Unicode分为UTF-8和UTF-16.UTF-8变长度的,最多 6 个字节,小于 127 ...
- structs2标签
Struts2常用标签总结 一 介绍 1.Struts2的作用 Struts2标签库提供了主题.模板支持,极大地简化了视图页面的编写,而且,struts2的主题.模板都提供了很好的扩展性.实现了更好的 ...
- JVM工作原理和特点(一些二逼的逼神面试官会问的问题)
作为一种阅读的方式了解下jvm的工作原理 ps:(一些二逼的逼神面试官会问的问题) JVM工作原理和特点主要是指操作系统装入JVM是通过jdk中Java.exe来完毕,通过以下4步来完毕JVM环境. ...
- MP3/WAV 播放
一.编译libmad 1.先下载压缩包到本地,并解压 tar -xvzf libmad-0.15.1b.tar.gz -C ./ 2.进入源代码文件夹并配置 编写一个配置文件,便于< ...
- java学习笔记day02
1.如何定义一个功能,并通过函数(方法)体现出来呢? 1)明确改功能运算后的结果.确定函数的返回值类型. 2)明确在实现该功能的过程中是否有未知内容参与运算.确定参数列表. 2.函数重载:在同一个 ...
- zabbix监控代理zabbix-proxy
新公司监控用的zabbix,其中用到了zabbix-proxy,原先没有尝试弄过,现在先提前安装看看,以便后续使用查阅. Zabbix-proxy 是一个监控代理服务器,它收集监控到的数据,先存放在缓 ...
- nginx日志格式
日志格式 log_format main '$remote_addr - $remote_user [$time_local] $request ' '" ...
- iOS/iPhone 程序文件目录结构以及启动流程
要想清晰的理解IOS应用程序的启动过程,毫无疑问需要深入了解一下ios应用程序的文件系统.一个ios应用程序都有一个属于自己沙盒(sandbox),应用沙盒就是文件系统目录,并且与文件系统的其他部分隔 ...
- 利用JQuery实现全选和反选的几种方法
前面介绍了利用JavaScript实现全选功能,其中也有要注意的几点,现在讲解下在JQuery怎么实现全选和反选,下面提供了两种方法实现. 如图:要实现的效果是点击全选框全部选中,再点击全部不选中 方 ...