在C#中,如果在方法参数前面加上ref关键字,说明参数传递的是引用,而不是值。如何理解呢? 参数是简单类型的例子 static void Main(string[] args) { string temp = "a"; Change(temp); Console.WriteLine(temp); ....
分类:
其他好文 时间:
2014-07-03 19:45:42
阅读次数:
189
bootsect部分已经执行完成,程序也跳转到setup部分:
start:
! ok, the read went well so we get current cursor position and save it for
! posterity.
mov ax,#INITSEG ! this is done in bootsect already, but...
mov...
分类:
系统相关 时间:
2014-07-03 18:38:19
阅读次数:
329
一、Solr学习相关资料
1、官方材料
(1)快速入门:http://lucene.apache.org/solr/4_9_0/tutorial.html,以自带的example项目快速介绍发Solr的基础使用。
(2)API:http://lucene.apache.org/solr/4_9_0/index.html
(3)reference:PDF格式,apache-solr-ref-...
分类:
其他好文 时间:
2014-07-03 16:56:58
阅读次数:
245
在c#中有个关键字叫ref,它的作用是使参数按引用传递,基本用法如下: 1 class RefExample 2 { 3 static void Method(ref int i) 4 { 5 i = 44; 6 } 7 static void Mai...
分类:
其他好文 时间:
2014-07-03 12:11:33
阅读次数:
223
DECLARE c1 cursor for select 'alter table ['+ object_name(parent_obj) + '] drop constraint ['+name+']; ' from sysobjects where xtype = 'F'ope...
分类:
数据库 时间:
2014-07-03 09:19:58
阅读次数:
273
论asp.net out、ref、returnref(引用类型)ref引用类型进出都必须赋值,赋值后会改变类型原来的指针。out(值类型)out值类型进可以不赋值,出必须赋值。return(返回函数类型)return必须返回函数对应的类型。ref实例:protected void Page_Load...
分类:
Web程序 时间:
2014-07-03 06:33:19
阅读次数:
369
----------------------------------------------【2.以下是更新统计信息】 DECLARE UpdateStatisticsTables CURSOR READ_ONLY FOR SELECT sst.name, Sche...
分类:
数据库 时间:
2014-07-02 23:25:15
阅读次数:
325
python 集成了 sqlite3 ,其接口很简单:import sqlite3db_connection = sqlite3.connect(db_filename)db_cursor = db_connection.cursor()db_cursor.execute('select * fro...
分类:
数据库 时间:
2014-07-02 17:46:35
阅读次数:
306
#!/usr/bin/pythonimportMySQLdbdefnew_mail_mysql(ak):printakconn=MySQLdb.connect(host=‘m3306.sae.sina.com.cn‘,user=‘sae_ol‘,passwd=‘7b149edb22ae7526‘,db=‘sae‘,port=3306)cur=conn.cursor()sql="selectnamefromappwhereaccesskey=‘%s‘"%akcur.execute(sql)app_name=cu..
分类:
数据库 时间:
2014-07-02 16:14:12
阅读次数:
285
数据表结构如下;SQL>descrecord;NameTypeNullableDefaultComments----------------------------------------------RECORD_GUIDVARCHAR2(50)YDNISVARCHAR2(15)YANIVARCHAR2(15)YSTARTTIMEDATEYENDTIMEDATEYSTAFFIDVARCHAR2(10)YAGENTIDVARCHAR2(10)YEXTENSIONVARCHAR2(20)Y..
分类:
其他好文 时间:
2014-07-02 06:16:00
阅读次数:
244