保守的な目で見て、どのようなコーティングスタイルをとるのか迷っています
具体例を挙げると
img[0]=LoadGraph("test00.bmp");
img[1]=LoadGraph("test01.bmp");
img[2]=LoadGraph("test02.bmp");
img[3]=LoadGraph("test03.bmp");
img[4]=LoadGraph("test04.bmp");
img[5]=LoadGraph("test05.bmp");
img[6]=LoadGraph("test06.bmp");
img[7]=LoadGraph("test07.bmp");
img[8]=LoadGraph("test08.bmp");
img[9]=LoadGraph("test09.bmp");
//-------------------------------------------------------------------
char str[80];
for(inti=0;i<10;i++){
wsprintf(str,"test%02d.bmp",i);
img=LoadGraph(str);
}
//-------------------------------------------------------------------
char *filename[/url] = {
"test00.bmp",
"test01.bmp",
"test08.bmp",
"test09.bmp",
};
for( int i=0; i<sizeof(filename)/sizeof(filename[0]); i++ ) {
img = LoadGraph( filename );
}のように3通りの方法があるのですが、どのコーティングスタイルにするか迷っています
「これがいいよ」とか意見ないでしょうか?