摘要:
一 SwigSWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages.the languages include:Perl, PHP, Python, Tcl and RubyC#, Common... 阅读全文
摘要:
一 使用Command模式如下:二使用Singleton的UndoManager如下:三C#的类代码如下:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->publicinterfaceICommand{voidExecute();voidReverse();}publicclassACommand:ICommand{voidExecute(){};voidReverse(){};}publicclassBCommand:ICommand{vo 阅读全文
摘要:
一 array1)实例Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->usestrict;usewarnings;my@myarray=(123,"hello",456,'guy');foreach(@myarray){print"$_";}print"\n";foreachmy$item(@myarray){print"$item";}print 阅读全文