- 193 名前:デフォルトの名無しさん mailto:sage [2007/10/27(土) 03:40:29 ]
- >>192
つまり「程度」によるわけだよな。 だから、程度によっては定数を左に持ってきても良いだろ。 それから、 if (!strcmp(str1, str2)) {} が許されるなら、 if (0==strcmp(str1, str2)) {} も許されるだろ。 if ( strcmp(str1, str2) ! ) {} と、後ろに「!」は書かないからな。 後、if (!strcmp(str1, str2)) {} は C langage FAQ では悪い例として取り上げられている。 こうかかれるぐらいなら、if (0==strcmp(str1, str2)) {} とかかれた方がまだマシだと 考える人も多いだろう。
|

|