职工工资管理系统(我的第一个C程序)
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include<windows.h>
#include<malloc.h>
#include<math.h>
typedef struct worker
{
int num; //编号
char name[15]; //姓名
char zhicheng[15]; //职称
char zhiwu[15]; //职务
double salary; //基本工资
struct worker *next; //后继指针
struct worker *prior; //前驱指针
}Node,*Link;
#define LEN sizeof(struct worker)
Link head=NULL,tail=NULL; //全局变量
/*菜单函数*/
int menu_select()
{
int temp;
system("cls");
printf("\t(*^__^*) (*^__^*)\n");
printf("\t 欢迎使用由电子0911刘军同学编写的程序 \n\n");
printf("\t======================================================\n\n");
printf("\t※\t**********职工工资信息管理系统******** ※\n");
printf("\t ※ ※\n");
printf("\t※ ☆1.信息录入 ☆2.插入成员 ※\n");
printf("\t ※ &nbs
相关文档:
C/C++ 常见误区
1. C++虽然主要是以C的基础发展起来的一门新语言,但她不是C的替代品,不是C的升级,C++和C是兄弟关系。没有谁比谁先进的说法,更重要的一点是C和C++各自的标准委员会是独立的,最新的C++标准是C++98,最新的C标准是C99。因此也没有先学C再说C++的说法,也不再(注意这个"不再")有C++语法 ......
问题:在存储过程中,有时会遇到比较变态的东西,如一个存储过程中有output返回值,有return返回值,还有查询的返回值TABLE,遇到这样的存储过程真是郁闷,一次性把所有的返回值取出来还真的有点麻烦。
1、 首先来看这个存储过程吧
CREATE PROCEDURE ParaTest
@paraout varchar(20) ......
C语言中有几个基本输入函数:
//获取字符系列
int fgetc(FILE *stream);
int getc(FILE *stream);
int getchar(void);
//获取行系列
char *fgets(char * restrict s, int n, FILE * restrict stream);
char *gets(char *s);//可能导致溢出,用fgets代替之。
//格式化输入系列
int fscanf(FILE * r ......