真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

c語(yǔ)言用函數(shù)做的職工系統(tǒng),c語(yǔ)言課程設(shè)計(jì)職工管理系統(tǒng)

c語(yǔ)言課程設(shè)計(jì)——職工信息管理系統(tǒng)

#includestdio.h

十年的天臺(tái)網(wǎng)站建設(shè)經(jīng)驗(yàn),針對(duì)設(shè)計(jì)、前端、開發(fā)、售后、文案、推廣等六對(duì)一服務(wù),響應(yīng)快,48小時(shí)及時(shí)工作處理。全網(wǎng)整合營(yíng)銷推廣的優(yōu)勢(shì)是能夠根據(jù)用戶設(shè)備顯示端的尺寸不同,自動(dòng)調(diào)整天臺(tái)建站的顯示方式,使網(wǎng)站能夠適用不同顯示終端,在瀏覽器中調(diào)整網(wǎng)站的寬度,無(wú)論在任何一種瀏覽器上瀏覽網(wǎng)站,都能展現(xiàn)優(yōu)雅布局與設(shè)計(jì),從而大程度地提升瀏覽體驗(yàn)。創(chuàng)新互聯(lián)從事“天臺(tái)網(wǎng)站設(shè)計(jì)”,“天臺(tái)網(wǎng)站推廣”以來(lái),每個(gè)客戶項(xiàng)目都認(rèn)真落實(shí)執(zhí)行。

#includestring.h

int main()

{

void TestOnLineTeacherManage(); //聲明教師信息管理函數(shù)

void TestOnLineSelfManage();//聲明個(gè)人管理函數(shù)

int n;

printf(“0教師管理,1個(gè)人管理”);

scanf(“%d”,n);

If (n==0)

TestOnLineTeacherManage();

else

TestOnLineSelfManage();//選擇教師管理或者個(gè)人信息管理

Return 0;

}

Void TestOnLineTeacherManage() //教師信息管理函數(shù)

{

Struct TestOnLineTeacher

{

Int Tnum;

Char Tname[20];

Char Tsex;

Char Ttel[20];

}Teacher[100]; //定義一個(gè)結(jié)構(gòu)體

void add(); //定義教師信息添加

void del(); //定義教師信息刪除

Void modify(); //定義教師信息修改

int a;

Printf(“1添加2刪除3修改”);

Scanf (“%d”,a);

Switch(a)

{

Case1:add();break;

Case2:del();break;

Case3:modify();break;

Default:break;

}//選擇功能

}

Void add() //教師信息添加函數(shù),若添加Teacher[i]

{

printf(“輸入工號(hào)”);

Scanf(“%d”,Teacher[i].Tnum);

printf(“輸入姓名”);

Scanf(“%s”,Teacher[i].Tname);

printf(“輸入性別f女m男”);

Scanf(“%c”,Teacher[i].Tsex);

printf(“輸入電話”);

Scanf(“%s”,Teacher[i].Ttel);

}

Void del() //教師信息刪除函數(shù),若刪除Teacher[i]

{

Teacher[i-1]=Teacher[i+1];

Free(Teacher[i]);

}

Void modify() //教師信息修改函數(shù),若修改Teacher[i]

{

Int t;

Int num;

Char name[20];

Char sex;

Char tel[20];

Printf(“修改選項(xiàng)1工號(hào)2姓名3性別4電話”);

Scanf(“%d”,t);

Switch(t)

{

Case1:scanf(“%d”,num);Teacher[i].Tnum=num;break;

Case2:scanf(“%s”,name);strcpy(Teacher[i].Tname,name);break;

Case3:scanf(“%c”,sex);Teacher[i].Tsex=sex;break;

Case4:scanf(“%s”,tel);strcpy(Teacher[i].Ttel,tel);break;

Default:break;

}//選擇修改項(xiàng)并修改

}

Void TestOnLineSelfManage() //個(gè)人信息管理

{

Struct TestOnLineManage

{

Int Mnum;

Char Mname[20];

Char Msex;

Char Mtel[20];

}Manage[1]; //定義一個(gè)結(jié)構(gòu)體

Int b;

Int num;

Char name[20];

Char sex;

Char tel[20];

Printf(“修改選項(xiàng)1工號(hào)2姓名3性別4電話”);

Scanf(“%d”,b);

Switch(t)

{

Case1:scanf(“%d”,num);Manage[1].Mnum=num;break;

Case2:scanf(“%s”,name);strcpy(Manage[1].Mname,name);break;

Case3:scanf(“%c”,sex);Manage[1].Msex=sex;break;

Case4:scanf(“%s”,tel);strcpy(Manage[1].Mtel,tel);break;

Default:break;

}//選擇修改項(xiàng)并修改

}

怎么用C語(yǔ)言編寫員工考勤系統(tǒng)

如果是要被使用者操作的系統(tǒng), 使用pure C是比較麻煩的, 尤其是在視窗GUI處理上. (除非你要使用的是文字模式, 即便如此, 排版及頁(yè)面控制也是件麻煩事).

我個(gè)人會(huì)建議使用VC, 簡(jiǎn)化GUI處理, 可將關(guān)注重心放在系統(tǒng)功能本身.

如果是課業(yè)或?qū)n}, 那就需要自行考量各部分的重要比率, 將某些部分進(jìn)行簡(jiǎn)化, 加強(qiáng)重點(diǎn)的關(guān)注.

用c語(yǔ)言寫職工信息系統(tǒng).我寫的沒(méi)法修改信息!誰(shuí)能幫我改一下這個(gè)子函數(shù)

子表 ( MADE IN 127 ) ***/

/*** ! 在程序運(yùn)行過(guò)程中不要切換窗口,否則,會(huì)出錯(cuò) . ***/

#includegraphics.h

#includemath.h

#includetime.h

#define STEP 6.283183/60

#define PI 3.141592

#define X 307

#define Y 150 /*** 中心坐標(biāo) ***/

#define R 100

#define R_OUT (R+4) /*** 內(nèi)外半徑 ***/

#define R_S (R-20)

#define R_M (R-35)

#define R_H (R-50) /*** 各指針半徑 ***/

#define MIN 60 /*** 設(shè)定延時(shí) (分鐘) ***/

#define C_I 9

int HH=0,MM=0;

main()

{

int gd=DETECT,gm,second,record_s,minite,record_m,hour,i,pc=60;

time_t t; float temp; char ch='#';

int int_M=MIN; pc=(MIN-int_M)*60;

initgraph (gd,gm,""); setbkcolor (0);

/*** 外觀設(shè)計(jì) ***/

circle (X,Y,R); setfillstyle (1,2); floodfill (X,Y,15);

circle (X,Y,R_OUT); setfillstyle (1,8); floodfill (X+R_OUT-1,Y,15);

rectangle (X-2,Y-R+8-4,X+2,Y-R+8+4);

rectangle (X-2,Y+R-8-4,X+2,Y+R-8+4);

rectangle (X-R+8-4,Y-2,X-R+8+4,Y+2);

rectangle (X+R-8-4,Y-2,X+R-8+4,Y+2);

for (i=1;i=60;i++)

if (i!=15i!=30i!=45i!=60)

if (i%5!=0) circle (X+(R-10)*cos(i*STEP),Y+(R-10)*sin(i*STEP),1);

else circle (X+(R-10)*cos(i*STEP),Y+(R-10)*sin(i*STEP),2);

rectangle (X+R_OUT,Y-6,X+R_OUT+6,Y+6);

setfillstyle (1,8); floodfill (X+R_OUT+3,Y,15);

temp=R_OUT*0.866;

line (X-R_OUT/2-5,Y-temp+2,X-R_OUT/2,Y-temp-30);

line (X-R_OUT/2+5,Y-temp-2,X-R_OUT/2+5,Y-temp-30);

line (X+R_OUT/2-5,Y-temp-2,X+R_OUT/2-5,Y-temp-30);

line (X+R_OUT/2+5,Y-temp+2,X+R_OUT/2,Y-temp-30);

line (X-R_OUT/2,Y-temp-30,X-R_OUT/2+5,Y-temp-30);

line (X+R_OUT/2-5,Y-temp-30,X+R_OUT/2,Y-temp-30);

line (X-R_OUT/2+5,Y-temp-25,X+R_OUT/2-5,Y-temp-25);

line (X-R_OUT/2+5,Y-temp-22,X+R_OUT/2-5,Y-temp-22);

floodfill (X-R_OUT/2-2,Y-temp,15);

floodfill (X+R_OUT/2+2,Y-temp,15);

floodfill (X,Y-R_OUT-10,15);

line (X-R_OUT/2-5,Y+temp-2,X-R_OUT/2,Y+temp+30);

line (X-R_OUT/2+5,Y+temp+2,X-R_OUT/2+5,Y+temp+30);

line (X+R_OUT/2-5,Y+temp+2,X+R_OUT/2-5,Y+temp+30);

line (X+R_OUT/2+5,Y+temp-2,X+R_OUT/2,Y+temp+30);

line (X-R_OUT/2,Y+temp+30,X-R_OUT/2+5,Y+temp+30);

line (X+R_OUT/2-5,Y+temp+30,X+R_OUT/2,Y+temp+30);

line (X-R_OUT/2+5,Y+temp+25,X+R_OUT/2-5,Y+temp+25);

line (X-R_OUT/2+5,Y+temp+22,X+R_OUT/2-5,Y+temp+22);

floodfill (X-R_OUT/2-2,Y+temp,15);

floodfill (X+R_OUT/2+2,Y+temp,15);

floodfill (X,Y+R_OUT+10,15);

for (i=1;i=MIN*60+1;i++) /*** 該循環(huán)嚴(yán)格一秒一次 ( 捕捉系統(tǒng)時(shí)間 ) ***/

{

setcolor (15);

circle (X,Y,5); circle (X,Y,2); setfillstyle (1,0); floodfill (X,Y,15);

settextstyle (2,0,0); setcolor (8); outtextxy (X-13,Y-52,"FIYTA");

outtextxy (X-30,Y+35,"MADE IN 127"); setcolor (2);

time (t); /*** 獲取系統(tǒng)時(shí)間 ***/

hour=(ctime(t)[11]-'0')*10+(ctime(t)[12]-'0');

minite=(ctime(t)[14]-'0')*10+(ctime(t)[15]-'0');

second=(ctime(t)[17]-'0')*10+(ctime(t)[18]-'0');

if (ch==C_I)

hour=(hour+HH)%24; minite=(minite+MM)%60;

window (22,22,80,22); printf (" The current time is ");

if (hour10) printf ("0"); printf ("%d : ",hour);

if (minite10) printf ("0"); printf ("%d : ",minite);

if (second10) printf ("0"); printf ("%d",second);

window (35,20,80,20);

printf (" "); if (int_M10) printf ("0"); printf ("%d : ",int_M);

if (pc10) printf ("0"); printf ("%d ",pc);

record_m=minite;

hour=10*hour+minite/6-30;

minite=2*minite+second/30-30;

second-=15; record_s=second;

setcolor (0); /*** 寫指針 ***/

line (X+7*cos(PI+hour*STEP/2),Y+7*sin(PI+hour*STEP/2),X+R_H*cos(hour*STEP/2),Y+R_H*sin(hour*STEP/2));

setcolor (1);

line (X+13*cos(PI+minite*STEP/2),Y+13*sin(PI+minite*STEP/2),X+R_M*cos(minite*STEP/2),Y+R_M*sin(minite*STEP/2));

setcolor (4);

line (X+20*cos(PI+second*STEP),Y+20*sin(PI+second*STEP),X+R_S*cos(second*STEP),Y+R_S*sin(second*STEP)); record_s=second;

ch='#';

while (second==record_s) /*** 此循環(huán)用來(lái) " 監(jiān)視 " 系統(tǒng)秒針的變化 ***/

{

time (t); second=(ctime(t)[17]-'0')*10+(ctime(t)[18]-'0')-15;

if (bioskey(1)(ch=getch())==C_I||ch==27)

{

if (ch==27)

window (22,22,80,22); printf (" PLS enter the time : ");

window (48,22,80,22);

while (!bioskey(1))

scanf ("%d:%d:%d",HH,MM);

if (HH=23HH=0MM=0MM=59) break; else

}

}

setcolor (2); /*** 覆蓋指針 ( 由秒控制 ) ***/

if ((record_m*60+60+second+15)%360==0||ch==C_I)

line (X+7*cos(PI+hour*STEP/2),Y+7*sin(PI+hour*STEP/2),X+R_H*cos(hour*STEP/2),Y+R_H*sin(hour*STEP/2));

if ((second+15)%30==0||ch==C_I)

line (X+13*cos(PI+minite*STEP/2),Y+13*sin(PI+minite*STEP/2),X+R_M*cos(minite*STEP/2),Y+R_M*sin(minite*STEP/2));

if (i!=60*MIN+1||ch==C_I)

line (X+20*cos(PI+record_s*STEP),Y+20*sin(PI+record_s*STEP),X+R_S*cos(record_s*STEP),Y+R_S*sin(record_s*STEP));

if (pc==0int_M!=0) pc=60; pc--; if (pc==59) int_M--;

}

window (20,22,80,22);

printf (" The watch time out! Press any key ... "); getch ();

closegraph ();

}


本文標(biāo)題:c語(yǔ)言用函數(shù)做的職工系統(tǒng),c語(yǔ)言課程設(shè)計(jì)職工管理系統(tǒng)
本文網(wǎng)址:http://weahome.cn/article/phhisc.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部