小甲鱼 发表于 2012-6-3 05:04:14

高级语法 if-elseif-endif 的使用


程序功能如图(if-elseif-endif实现):



代码及详细注释:
**** Hidden Message *****

fujian810 发表于 2012-6-3 21:00:38

沙发中。。。。。

fearhacker 发表于 2012-6-6 12:18:38

看看,嗯嗯,就看看。

番茄 发表于 2012-6-6 14:22:14

{:1_1:}

与C为伴 发表于 2012-6-6 16:26:41

{:5_109:}学习了哈

ITaman 发表于 2012-6-9 13:40:16

我喜欢fishc

sunhack 发表于 2012-6-17 17:07:34

学习交流,共同进步

浪漫狙击手 发表于 2012-6-25 16:16:36

看看怎么弄得

贵族网络南宫 发表于 2012-7-14 17:23:46

喜欢 我是VIP耶

lingdaoren 发表于 2012-8-5 17:15:41

从简单学期

GameBelial 发表于 2012-8-5 17:27:07

{:5_109:}看看~~~~~~~~~~~~~~~

877209649 发表于 2012-8-5 18:18:05

仔细分析一下

Seandor 发表于 2012-8-23 00:01:06

这些小程序写起来舒服多了,没建立窗口那么费心。;----------------------------------------------------------------
;by Sean
;----------------------------------------------------------------

                .386
                .model flat, stdcall
                option casemap:none                ;case sensitive
;----------------------------------------------------------------
;INCLUDES
;________________________________________________________________               
include windows.inc
include user32.inc
include kernel32.inc
includelib user32.lib
includelib kernel32.lib
;----------------------------------------------------------------
;INITIALIZED DATA
;________________________________________________________________
        .data
szQuestion        db        '你喜欢鱼C工作室吗?', 0
szCaption        db        '鱼C问卷调查', 0
szAnswer1        db        'We all love it!', 0
szAnswer2        db        'Thank you for your feedback!', 0
;----------------------------------------------------------------
;CODE
;________________________________________________________________
        .code
start:
        invoke MessageBox, NULL, addr szQuestion, addr szCaption, MB_ICONQUESTION or MB_YESNOCANCEL
       
        .if eax == IDYES
                invoke MessageBox, NULL, addr szAnswer1, addr szCaption, MB_OK or MB_ICONASTERISK
        .elseif eax == IDNO
                invoke MessageBox, NULL, addr szAnswer2, addr szCaption, MB_OK or MB_ICONASTERISK
        .endif               
       
        invoke ExitProcess, 0                ;结束进程
       
end start

亚历山大 发表于 2012-8-23 00:03:57

想看看有什么有意思的

一朵时光_bobo 发表于 2012-8-23 01:35:29

学习下。

我是桃川人 发表于 2012-8-26 21:48:29

回调消息中常有。

cmqi159 发表于 2012-9-27 09:04:32

哈哈,你喜欢小甲鱼么。

vigiles163com 发表于 2012-10-6 14:55:51

楼上有高手                  .

S辅导费 发表于 2012-10-6 15:15:21

........................................

shen 发表于 2012-10-6 15:17:30

看看是什么
页: [1] 2 3 4 5 6 7 8
查看完整版本: 高级语法 if-elseif-endif 的使用