エンディアンの問題は、たとえば、こういうように一バイトずつ 読み書きするしかないでしょうね。 void write_long(FILE* fp, long n) { int i; for (i = 0; i < 4; i++ ) { fputc(n & 0xff, fp); n >>= CHAR_BIT; } }
int main() { int i,max,min,tmp; scanf("%d", &min); scanf("%d", &max); if (min > max) { tmp = min; min = max; max = tmp; } for (i = min; i < max; i++) { printf("%d ", i); } return 0; }
Caml is a strongly-typed functional programming language from the ML family. Objective Caml and Caml Light are two open source implementations of Caml developed at INRIA Rocquencourt, projet Cristal.
>>606 コンパイル通らんぞ(藁。 word008.c: In function `main': word008.c:78: `j' undeclared (first use in this function) word008.c:78: (Each undeclared identifier is reported only once word008.c:78: for each function it appears in.)