2006-11-27から1日間の記事一覧

試してみよう

C#

Joelの試してみようの1問目のC#版。 1c#.(C#2.0) 次の問題は1bをC#2.0にしたものだ。次のメソッド []delegate[] T Combiner<T>( T x, T y );static T Accumulate<T>( Combiner<T> combiner, T nullValue, Queue<T> q ) { if ( q.Count == 0 ) return nullValue; T first</t></t></t></t>…