职工工资管理系统(我的第一个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
相关文档:
问题:在存储过程中,有时会遇到比较变态的东西,如一个存储过程中有output返回值,有return返回值,还有查询的返回值TABLE,遇到这样的存储过程真是郁闷,一次性把所有的返回值取出来还真的有点麻烦。
1、 首先来看这个存储过程吧
CREATE PROCEDURE ParaTest
@paraout varchar(20) ......
1.求下面函数的返回值(微软)
int func(x)
{
int countx = 0;
while(x)
{
countx ++;
x = x&(x-1);
}
......
#include <stdio.h>
#include <stdlib.h>
#define MAXSIZE 100
main()
{
FILE *fp;
if ( (fp = fopen( "c:\\a.txt", "r" )) == NULL ) printf("ERROR!\n");
int tmp[MAXSIZE];
int i;
for ( i=0; i<MAXSIZE; i++ )
{
tmp[i] = 0; ......
Turbo C 2.0 函数中文说明大全
分类函数,所在函数库为ctype.h
int isalpha(int ch) 若ch是字母('A'-'Z','a'-'z')返回非0值,否则返回0
int isalnum(int ch) 若ch是字母('A'-'Z','a'-'z')或数字('0'-'9'),返回非0值,否则返回0
int isascii(int ch) 若ch是字符(ASCII码中的0-127)返回非0值,否则返回0
int iscntrl(int ......