题目:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.代码:class Solution {public: vect...
分类:
其他好文 时间:
2015-05-11 21:30:23
阅读次数:
206
class Program{static void Main(string[] args){//定义一个一维数组int[] arr = {98,1,6,20,16,9};//判断是否发生交换bool b = false;for (int i = 0; i arr[j + 1]){ int tmp.....
分类:
编程语言 时间:
2015-05-11 21:25:42
阅读次数:
180
新建一个Single View Application添加一个空类如下:using System;using UIKit;using Foundation;namespace BasicTable{ public class TableSource : UITableViewSource { st....
分类:
其他好文 时间:
2015-05-11 21:23:58
阅读次数:
113
建造小人示例: 1.Builder: public abstract class PersonBuilder { public abstract void BuildHead(); public abstract void BuildBody(); ...
分类:
其他好文 时间:
2015-05-11 21:21:44
阅读次数:
126
Action代表的是一个具体的加载类。 里有一个静态内部类 static?class?RequestWeakReference<M>?extends?WeakReference<M>?{
????final?Action?action;
????public?RequestWeakReference(Action?...
分类:
其他好文 时间:
2015-05-11 20:16:35
阅读次数:
136
namespace CStest
{
static class Program
{
///
/// 应用程序的主入口点。
///
[STAThread]
static void Main()
{
//此方法为应用程序启用可视样式。如果控件和操作系统支持视觉样式...
resultMap类型为
<tr class="row-evenrow-odd...
分类:
其他好文 时间:
2015-05-11 20:12:16
阅读次数:
180
class IDNoIdentifier{public: IDNoIdentifier(); ~IDNoIdentifier(); typedef vector CvRectVectorType; bool Init(); bool Cleanup(); bool...
分类:
编程语言 时间:
2015-05-11 20:05:01
阅读次数:
166
//实现mstring类,//未实现友元函数+,> 1 #include 2 #include 3 #include 4 #include 5 class mstring{ 6 friend mstring& operator+(const mstring&str1,const ...
分类:
其他好文 时间:
2015-05-11 19:58:03
阅读次数:
116
今天稍微看了下反射的东西,虽然还不是很明白,但也写写随笔,加深下印象。 1、反射是什么东西? Reflection,中文翻译为反射。 这是.Net中获取运行时类型信息的方式,.Net的应用程序由几个部分:‘程序集(Assembly)’、‘模块(Module)’、‘类型(class)’组...