Lua中函数可以返回多个值,为了说明不同情况下,返回值的个数,我们先声明如下几个函数:
-- 无返回值
function fun0()
end
-- 一个返回值
function fun1()
return 1
end
-- 二个返回值
function fun2()
return 1, 2
end
-- 三个及多个返回值
function fun3()
return 1...
分类:
其他好文 时间:
2015-01-12 13:04:21
阅读次数:
131
??
When you model classes in the UML, remember that every class should map to some tangible or conceptual abstraction in the domain of the end user or the implementer. A well-structured class
1.P...
分类:
其他好文 时间:
2015-01-12 11:37:04
阅读次数:
239
1、基本语法 create or replace procedure update_emp_sal (Name in out type, Name in out type, ... ) is begin end update_emp_sal; 2、写一个简单的例子修改emp表的ename字段 cre...
分类:
数据库 时间:
2015-01-12 10:35:36
阅读次数:
151
Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.
If the number of nodes is not a multiple of k then left-out nodes in the end should remain as it is...
分类:
其他好文 时间:
2015-01-12 09:24:02
阅读次数:
136
输入n个单词,统计各个单词出现的个数
#include
#include
#include
using namespace std;
int main()
{
map k;
string word;
while(cin>>word)
++k[word];
for(map::iterator i=k.begin();i!=k.end();i++)
cout<<(*i)....
分类:
其他好文 时间:
2015-01-12 09:22:23
阅读次数:
158
方法1:function test(var a,b,c:integer):integer;beginend;方法2:type info = record name:string; age : integer; end;function test():info;v...
(.+?)/ies",$str,$matches)){ $imgurl='http://cn.bing.com'.$matches[1]; } if($imgurl){ header('Content-Type: image/JPEG'); @ob_end_clean(); @readfil...
分类:
Web程序 时间:
2015-01-11 17:44:29
阅读次数:
153
热备份alter tablespace users begin backup;cp +DATA/ora11g/USERS.259.833721555 +DATA/ora11g/backup/users.dbfalter tablespace users end backup;------------...
分类:
其他好文 时间:
2015-01-11 17:44:10
阅读次数:
191
alter tablespace users begin backup;断电startupselect status from v$instance;alter tablespace users end backup;alter database open;---------------------...
分类:
其他好文 时间:
2015-01-11 17:36:54
阅读次数:
252
最近关注了下Vlan的划分,发现Vlan的划分方式有2种,平时工作中常用的叫localVlan;还有一种叫end-to-endVlan,一般使用于十几或几十台交换机规模的企业网中。通过百度了下这两者的区别,描述的都不太直观,这里发表一下我的理解:1、localVlan从这张图可以看出,不同交换机间..
分类:
其他好文 时间:
2015-01-11 06:21:44
阅读次数:
293