• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            kenlistian

            厚積薄發. 勤為槳,思為帆

               :: 首頁 :: 新隨筆 ::  :: 聚合  :: 管理 ::
              73 隨筆 :: 4 文章 :: 22 評論 :: 0 Trackbacks
            lua是一個腳本語言,可以嵌入到c/c++中,它是世界上最小巧的腳本語言。
            學習它可以大大的擴充對數據設置方面的許多要求。
            lua,在西班人稱之月亮寶石,的確,把它掌握,把它嵌在vc之寶劍劍柄之上,
            將讓你砍殺一切“攔路之怪獸”增加魔法之光彩!
             
            首先,lua可以運行在windows平臺,但是你必須下載源碼對它編譯,下載地址在
            http://www.lua.org/
             
            如果采用vc6以上的話,編譯文件在\LUA\lua-5.1.1\etc中的bat中,
            如何構建lua,help有很清楚的解釋
            * Building Lua on Windows and other systems
              -----------------------------------------
              If you're not using the usual Unix tools, then the instructions for
              building Lua depend on the compiler you use. You'll need to create
              projects (or whatever your compiler uses) for building the library,
              the interpreter, and the compiler, as follows:
              library: lapi.c lcode.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c
              lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c
              ltable.c ltm.c lundump.c lvm.c lzio.c
              lauxlib.c lbaselib.c ldblib.c liolib.c lmathlib.c loslib.c
              ltablib.c lstrlib.c loadlib.c linit.c
              interpreter: library, lua.c
              compiler: library, luac.c print.c
              If you use Visual Studio .NET, you can use etc/luavs.bat
              in its "Command Prompt".
             
             If all you want is to build the Lua interpreter, you may put all .c files
              in a single project, except for luac.c and print.c. Or just use etc/all.c.
              To use Lua as a library in your own programs, you'll need to know how to
              create and use libraries with your compiler.
              As mentioned above, you may edit luaconf.h to select some features before
              building Lua.
             
            在vc中做,很簡單,如果想靜態的,先生成一個空靜態工程文件,加入以上文件,就建出library。lib文件,如果想生成動態的,則建一個動態工程文件,加入以上文件,就建成library。dll和library。lib文件。
             
            如果要建一個一個編譯器,則把上面的lib,和lua。c和print。c放在一個新win32控制臺工程文件編譯,形成了dos界面的exe,在dos下運行,生成的lua.exe如下
            http://kk
            腳本解釋器,就是把lua。c和lib文件放在一個空win32工程文件編輯成luaw.exe
             
            寫一個簡單的“hello world”文件,如下
             print( “hello world”)  保存為hello。lua,
             
            在dos下運行huae hello。lua
             將會打印出字符串。
             
            好了,第一篇介紹完。
             
             
             
             
             
             
             
             
            posted on 2006-06-17 17:53 kenlistian 閱讀(348) 評論(0)  編輯 收藏 引用
            欧美午夜A∨大片久久| 999久久久免费国产精品播放| 亚洲国产精品无码久久久久久曰| 久久综合五月丁香久久激情| 97久久国产综合精品女不卡| 国产精品九九九久久九九| 久久久精品日本一区二区三区| 久久精品一区二区影院| 热re99久久6国产精品免费| 99久久国产亚洲高清观看2024| 天天影视色香欲综合久久| 国产精品久久久久9999高清| 国产三级观看久久| 精品免费久久久久久久| 天天综合久久一二三区| 青青青国产精品国产精品久久久久| 亚洲伊人久久综合影院| 免费精品99久久国产综合精品| 国产精品久久久久蜜芽| 国产综合成人久久大片91| 亚洲欧美日韩中文久久| 伊人久久五月天| 伊人色综合久久| 国产一区二区三区久久| 人妻精品久久久久中文字幕一冢本 | 亚洲精品国产第一综合99久久| 嫩草影院久久99| 99久久免费国产特黄| 久久精品免费一区二区| 性做久久久久久久久老女人| 国产精品免费看久久久香蕉| 国产精品视频久久久| 久久精品国产99久久无毒不卡| 精品久久久久久国产| 久久亚洲sm情趣捆绑调教| 亚洲伊人久久综合中文成人网| 国产综合精品久久亚洲| 日韩欧美亚洲综合久久影院Ds | 精品久久久久久国产潘金莲| 欧美黑人又粗又大久久久| 久久综合给久久狠狠97色|