這個第三題該怎麼做?

時間 2021-06-23 06:29:18

1樓:

沒說什麼語言,所以這裡用乙個不會錯的語言——彙編。

.file "test.c"

.section .rdata,"dr"

.align 8

.LC0:

.ascii "Please enter a lowercase letter:\0"

.LC1:

.ascii "%c\0"

.align 8

.LC2:

.ascii "You did not enter lowercase letters, please re-enter:\0"

.text

.globl get_lowercase_letter

.def get_lowercase_letter; .scl 2; .type 32; .endef

.seh_proc get_lowercase_letter

get_lowercase_letter:

pushq %rbp

.seh_pushreg %rbp

movq %rsp, %rbp

.seh_setframe %rbp, 0

subq $48, %rsp

.seh_stackalloc 48

.seh_endprologue

leaq .LC0(%rip), %rcx

call puts

leaq -1(%rbp), %rax

movq %rax, %rdx

leaq .LC1(%rip), %rcx

call scanf

jmp .L2

.L4:

leaq .LC2(%rip), %rcx

call puts

leaq -1(%rbp), %rax

movq %rax, %rdx

leaq .LC1(%rip), %rcx

call scanf

.L2:

movzbl -1(%rbp), %eax

cmpb $96, %al

jle .L3

movzbl -1(%rbp), %eax

cmpb $122, %al

jle .L4

.L3:

movzbl -1(%rbp), %eax

addq $48, %rsp

popq %rbp

ret.seh_endproc

.ident "GCC: (tdm64-1) 5.1.0"

.def puts; .scl 2; .type 32; .endef

.def scanf; .scl 2; .type 32; .endef

這個c語言程式設計題該怎麼做?

劉雲賓 將各個數字都轉換為字串 將各個字串排序,大的在前,小的在後 將各個字串從左到右連線起來,就是答案 C 實現 include include include include include std string fun int n,int a int mainint n 3 int a std...

這個python實驗報告題怎麼做

冰糖雪梨 我本人不是專業的,給乙個實現方式,如下。如果有錯誤,還請各位批評指正。1 usr bin env python323 List creation 4 circle list chr i for i in range 65,65 26 56 number 1 7 time 0 8 while...

這個極限題怎麼做呢,希望大佬指教。

予一人 由 在正無窮處收斂的題設條件,對任意給定的 0,eeimg 1 存在 0 eeimg 1 使得當 時,有 於是,若將無窮積分作如下拆分 則對於其中第一項,有 對一切 和 成立,而 有界,於是依Lebesgue控制收斂定理,有 至於第二項,有 注意到 於是 命其中 則 由 0 eeimg 1 ...