1 Singleton Definition 單態模式定義 The main purpose is to gurantee that the instance of class has only one in the application. some operations, such as connecting to database, are userful for only single
What is assembly什麼是程式集 Assembly is a logical collection of one or more modules [modjul]. Each assembly has a four-part name that uniquely identifies it. This four-part consists of the friendly name, culture , develpoer, and version of the
Way 1: UpLoadFile webcontrol can finish it easyFileUpLoad ful_load =new FileUpLoad(); //FileUpLoad is a kind of control…..Set the upload file name;ful_load.SaveAs(Server.MapPath(ful_load.FileName));that’s ok!Way 2: can upload many files in
Problem description:for many developer, they don't care much about Passcode identity. when Logining into the database server ,they just write like this: sql="select * from user where username='"+username"' and password='"+password+"' as for this
1 Mediator Pattern definition 調停者模式定義 The Mediator Pattern defines an object that encapsulates how a set of objects interact. This promotes loose coupling,keeping the objects from refering to each other explicitly, and lets u vary their
Q: Below is usual way we find one element in an array: in this case we have to bear the knowledge of value type"int",the size of array,even the existence of an array. would you re-write it using template to eliminate all these
4. update value in XML fileXmlNodeList nodeList=xmlDoc.SelectSingleNode("bookstore").ChildNodes;//擷取bookstore節點的所有子節點 foreach(XmlNode xn in nodeList)//遍曆所有子節點 { XmlElement xe=(XmlElement)xn;//將子節點類型轉換為XmlElement類型 if(xe.GetAttribute("genre"
Q:in C++ programming language, Is it right to define a class as the following shown:class A{const int Size=0;}A:no, it's wrong! 在C++中,這樣是錯誤的,常量成員的初始化必須在建構函式中完成。the initiation of const must be intialized in construct function. so the right codes
1. Some specific name: XmlDocument XmlNodeList XmlNode XmlElement The whole architecture and relation among them is following Attentions:selectsinglenodelist(”users”),用於擷取users下面的所有直接子節點。這個方法經常用到2. the difference between xmlnode and
Implement functionality using Cusor/*decription:import data from BomIntraplantRoute_Buckets of ofg_response_staging intods_in_bom_intraplant_route_bucket of OFG_SLV_DEVcreated by: Winstion He on 2008/1/2*/create proc
1 about the name regulation for table,store procedure,view .. normally, each different kind of object should be named with specific flag, such as table named as Tab_*, store procedure named as Pr_*, view named as V_*,.... 2 use sql scripts
please wirte a program to realize the model described in the figure. you shoudl design your program as negeric as possible so that we can enhance the model in the future ealily without making too much change in your program(SAP 2005)
1. what's timerTimer provides a mechanism for executing a method in at specified intervals.the hierarchy can be the following:System.Threading.timer;System.Timer.timer;System.Windows.form.timer;2. relevant method about timer. public class AsynTest
if object_id('Pr_ToSolver_ds_in_item_group_loc_period') is not null drop proc Pr_ToSolver_ds_in_item_group_loc_periodcreate proc Pr_ToSolver_ds_in_item_group_loc_periodasinsert into ds_in_item_group_loc_period ( item_group_name
what is contract什麼是資料協議 In the abstract, all the WCF provides for is the ability to host and expose native CLR types as servies, and the ability to consume services as native CLR interfaces and classes.WCF service operations accept and return CLR
1 we must set different template of the datalist object as diffirent appearance, such as itemplate,editplate,headertemplate,footertemplate. in edit template, Update function should have the Update command name as 'Update',and the same to Delete
i.respective classes and interfaces related asychronouse invoking in .Net FrameWork. a) IAsycResult interface IAsyncResult stores relative asynchronouse invoking information,including the following ----------------------------
The class to process the file and directory mainly include Directory, DirectoryInfo, File, FileInfo Directory : create, move, rename, delete directory with static method . if you will use a directory object many times, you’d better use
Q: In MFC Libraby, there is no doubt for the importance of the class CObject. and in the defition of CObject, wen found an interesting thing, that is :the destructor of CObject is virtual. why the coder of MFC think that virtual destructors