プロファイラ for windows VisualStudio

2月 28th, 2007 tocmoc

 フリーのプロファイラ.
登録が必要だけど,非常に役に立つので惜しむとこではないだろう...

.NETアプリケーションのパフォーマンス分析ツール(無償提供製品)
DevPartner Profiler Community Edition

https://www.compuware.co.jp/products/devpartner_fm/dl_devpartner.html

 

二次元配列の動的確保

2月 20th, 2007 tocmoc

4×10の配列の時 
int col = 10;
int raw = 4;
int** array= new int*[4];

for (int i= 0; i < 4; ++i)
    array[i]= new int[10];

//後始末
for (int i= 0; i < 4; ++i)
    delete[] a[i];
delete[] a; 

演算子オーバロードの例

2月 20th, 2007 tocmoc

どんな形式があるかを忘れてそうだし,どれか抜け落ちそうなので.

HogeHoge& operator=( const HogeHoge& x );
HogeHoge operator+( const HogeHoge& x );
HogeHoge operator-( const HogeHoge& x );
HogeHoge operator*( const HogeHoge& x );
HogeHoge operator/( const HogeHoge& x );
HogeHoge& operator+=( const HogeHoge& x );
HogeHoge& operator+=( const double& x );
HogeHoge& operator-=( const HogeHoge& x );
HogeHoge& operator-=( const double& x );
HogeHoge& operator*=( const HogeHoge& x );
HogeHoge& operator*=( const double& x );
HogeHoge& operator/=( const HogeHoge& x );
HogeHoge& operator/=( const double& x );
HogeHoge operator++( );
HogeHoge operator++( const int dummy );
HogeHoge operator–( );
HogeHoge operator–( const int dummy );
bool operator==( const HogeHoge& x );
bool operator!=( const HogeHoge& x );

test

2月 6th, 2007 tocmoc

This is test
これはテストです

これはテストなんです