代码搜索:Local
找到约 10,000 项符合「Local」的源代码
代码结果 10,000
www.eeworm.com/read/256544/11987627
lua strict.lua
--
-- strict.lua
-- checks uses of undeclared global variables
-- All global variables must be 'declared' through a regular assignment
-- (even assigning nil will do) in a main chunk before being used
www.eeworm.com/read/256544/11987892
lua table.lua
-- make table, grouping all data for the same item
-- input is 2 columns (item, data)
local A
while 1 do
local l=io.read()
if l==nil then break end
local _,_,a,b=string.find(l,'"?([_%w]+)"?%s*(.*)
www.eeworm.com/read/256544/11987900
lua fibfor.lua
-- example of for with generator functions
function generatefib (n)
return coroutine.wrap(function ()
local a,b = 1, 1
while a
www.eeworm.com/read/256544/11987904
lua globals.lua
-- reads luac listings and reports global variable usage
-- lines where a global is written to are marked with "*"
-- typical usage: luac -p -l file.lua | lua globals.lua | sort | lua table.lua
while
www.eeworm.com/read/256544/11987916
lua sort.lua
-- two implementations of a sort function
-- this is an example only. Lua has now a built-in function "sort"
-- extracted from Programming Pearls, page 110
function qsort(x,l,u,f)
if l
www.eeworm.com/read/256129/12022972
cpp symbol.cpp
#include
#include
#include
int NUMBER;
int main(void)
{
int NUMBER;
clrscr();
NUMBER=1;
printf("\n-*-*-*- Before changing the NUMBER -*-*-*-");
printf
www.eeworm.com/read/255969/12042561
cpp symbol.cpp
#include
#include
#include
int NUMBER;
int main(void)
{
int NUMBER;
clrscr();
NUMBER=1;
printf("\n-*-*-*- Before changing the NUMBER -*-*-*-");
printf