-
數據加密程序
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
標簽:
buf
segment
welcome
macro
上傳時間:
2013-12-24
上傳用戶:離殤
-
多通道AD轉換演示程序
MCU:MEGA8 晶振:內部RC(INT) 8MHZ
標簽:
MEGA8
8MHZ
MCU
INT
上傳時間:
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
}
標簽:
include
stdlib
stdio
gt
上傳時間:
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
}
標簽:
include
stdlib
stdio
gt
上傳時間:
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)
}
}
標簽:
INT
include
stdlib
fun_a
上傳時間:
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
}
標簽:
include
INT
stdlib
stdio
上傳時間:
2013-11-29
上傳用戶:tyler
-
對double型的向INT型轉換的出錯問題的校正
標簽:
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)。
標簽:
INT
unsigned
long
Lxn
上傳時間:
2017-01-02
上傳用戶:s363994250