數據加密程序 p macro buf lea dx,buf mov ah,9 Int 21h endm data segment pp db 0dh,0ah, welcome you to run this programme!$ qq db 0dh,0ah, when you input number,press enter.$ qw db 0dh,0ah, 6eh,52h,94h,52h,$ qa db 0dh,0ah, $ info1 db 0dh,0ah,0dh, input number:$ info2 db 0dh,0ah, output number:$ bufa db 20
上傳時間: 2013-12-24
上傳用戶:離殤
多通道AD轉換演示程序 MCU:MEGA8 晶振:內部RC(Int) 8MHZ
上傳時間: 2014-11-26
上傳用戶:luke5347
Methods void close() Int read() reads and returns a chracter. Int read(char[] characterArray) populates an array of characters with data. boolean ready() - returns “true” if there is data available. ……
標簽: read characterArray Int chracter
上傳時間: 2013-12-18
上傳用戶:小儒尼尼奧
溫度華氏轉變攝氏 #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
對double型的向Int型轉換的出錯問題的校正
上傳時間: 2014-01-10
上傳用戶:秦莞爾w
編寫具有如下原型的函數:Int f(unsigned long x, Int n, Int& Lxn) 它負責將整數x的第n位(從左邊數第n位,n>0)的數值放到引用Lxn之中(將作為結果返回到主調函數的對應實參變量中),并將倒數第n位(從右邊數第n位,n>0)的數值作為函數結果返回去。并編制主函數對它進行調用以驗證其正確性。 例如,當x=123456789,n=7時,執行語句“Rxn=f(x, n, Lxn) ”將使返回的Lxn為7,并使Rxn變為3;而執行語句“Rxn=f(12345, 6, Lxn) ”將使Lxn與Rxn都變為為0(超出數的“長度”即總位數時返回0)。
上傳時間: 2017-01-02
上傳用戶:s363994250