89s51單片機控制繼電器! 由s51io口輸出低電平使三極管導通 從而控制繼電器閉合 #Include <reg51.H> sbit P0_0=P0^0 sbit P1_7=P1^7 main() {while(1) { if (P0_0==0) P1_7==1 } }
上傳時間: 2013-12-17
上傳用戶:xsnjzljj
clean all the event log, Include Application, Security, System
標簽: Application Security Include System
上傳時間: 2016-10-31
上傳用戶:siguazgb
程序是根據vidcat改的,只能抓PPM的圖. makefile的內容如下,請注意打小寫: cc=gcc #cflags=-i/firendly-arm/kernel/Include -i/usr/local/arm/2.95.3/arm-linux/Include -wall -dhave_libjpeg #-dvideo_dev=\"/dev/v4l/video0\" -dversion=\"0.7.2\" cflags=-wall -dvideo_dev=\"/dev/video0\" -dversion=\"0.7.2\" camsnap: camsnap.c 用法如下: camsnap -v -s 420x420 -o my.ppm 這兒請注意:s 的大小必需是8能整除的倍數. 這個程序我是在rh9下作的,需要交叉編譯的朋友就把注釋去掉,再給下面的注釋就可以了.
標簽: firendly-arm makefile Include vidcat
上傳時間: 2016-11-20
上傳用戶:清風冷雨
gps code Include 頭文件和源程序
上傳時間: 2016-11-24
上傳用戶:yph853211
溫度華氏轉變攝氏 #Include <stdio.h> #Include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf("73分=C等級!!\n") else if (a>=60) printf("73分=D等級!!\n") else if (a<60) printf("73分=E等級!!\n") } { if (b>=90) printf("b=A等級!!\n") else if (b>=80) printf("85分=B等級!!\n") else if (b>=70) printf("85分=C等級!!\n") else if (b>=60) printf("85分=D等級!!\n") else if (b<60) printf("85分=E等級!!\n") } { if (c>=90) printf("c=A等級!!\n") else if (c>=80) printf("66分=B等級!!\n") else if (c>=70) printf("66分=C等級!!\n") else if (c>=60) printf("66分=D等級!!\n") else if (c<60) printf("66分=E等級!!\n") } system("pause") return 0 }
上傳時間: 2014-11-10
上傳用戶:wpwpwlxwlx
溫度華氏轉變攝氏 #Include <stdio.h> #Include <stdlib.h> enum x {A,B,C,D,E} int main(void) { int a=73,b=85,c=66 { if (a>=90) printf("a=A等級!!\n") else if (a>=80) printf("73分=B等級!!\n") else if (a>=70) printf("73分=C等級!!\n") else if (a>=60) printf("73分=D等級!!\n") else if (a<60) printf("73分=E等級!!\n") } { if (b>=90) printf("b=A等級!!\n") else if (b>=80) printf("85分=B等級!!\n") else if (b>=70) printf("85分=C等級!!\n") else if (b>=60) printf("85分=D等級!!\n") else if (b<60) printf("85分=E等級!!\n") } { if (c>=90) printf("c=A等級!!\n") else if (c>=80) printf("66分=B等級!!\n") else if (c>=70) printf("66分=C等級!!\n") else if (c>=60) printf("66分=D等級!!\n") else if (c<60) printf("66分=E等級!!\n") } system("pause") return 0 }
上傳時間: 2013-12-12
上傳用戶:亞亞娟娟123
成績顯示三個部份abc #Include<stdio.h> #Include<stdlib.h> int main(void) { float gread printf("請輸入分數\n") scanf("%f",&gread) if(gread>=80&&gread<=100) printf("成績為A\n") else if(gread>=60&&gread<=79) { printf("成績為B\n") } else if(gread>=0&&gread<60) { printf("成績為C\n") } else { printf("分數輸入錯誤\n") } system("pause") return 0 }
標簽: Include stdlib float gread
上傳時間: 2014-01-15
上傳用戶:waizhang
河內塔問題 #Include<stdio.h> #Include<stdlib.h> int fun_a(int) void fun_b(int,int,int,int) int main(void) { int n int option printf("題目二:河內塔問題\n") printf("請輸入要搬移的圓盤數目\n") scanf("%d",&n) printf("最少搬移的次數為%d次\n",fun_a(n)) printf("是否顯示移動過程? 是請輸入1,否則輸入0\n") scanf("%d",&option) if(option==1) { fun_b(n,1,2,3) } system("pause") return 0 } int fun_a(int n) { int sum1=2,sum2=0,i for(i=n i>1 i--) { sum1=sum1*2 } sum2=sum1-1 return sum2 } void fun_b(int n,int left,int mid,int right) { if(n==1) printf("把第%d個盤子從第%d座塔移動到第%d座塔\n",n,left,right) else { fun_b(n-1,left,right,mid) printf("把第%d個盤子從第%d座塔移動到第%d座塔\n",n,left,right) fun_b(n-1,mid,left,right) } }
上傳時間: 2016-12-08
上傳用戶:努力努力再努力
指定一個數字轉換回十進位,八進位,十六進位#Include <stdio.h> #Include <stdlib.h> int main(void) { int number =89 printf("數字 %d\n",number) /* %d 為十進位輸出格式*/ printf("八進位為 %o\n",number) /* %o 為八進位輸出格式*/ printf("十六進位為%x\n",number) /* %x 為十六進位輸出格式*/ system("pause") return 0 }
上傳時間: 2013-11-29
上傳用戶:tyler
時鐘芯片的c程序 使用時加上頭文件 即#Include<reg.h>
上傳時間: 2013-11-29
上傳用戶:獨孤求源