Sunday, August 28, 2011

b = a,返回引用; c = a + b,返回值;return int(a+c) 创建一个临时对象并返回

临时对象直接在外部储存单元中创建并初始化。

office building optimization

1. find the best design process for office building design using GP.
   Genome:  a b a a a b
   gene:        a
   gene-metadata: 12345 -> a -> a b a a a b
   gene-metadata: 12344 -> a -> a b a a a b 
   gene-metadata: 21340 -> b -> b b a a a b

2. object-oriented crossover and mutation

Friday, August 26, 2011

c#/csharp "@" at-sign


int new = 123;  // 'new' is a keyword 
int @new = 123; // no error 
 
string str1 = "photos\\aug";
string str2 = @"photos\aug";