20 lines
306 B
C
20 lines
306 B
C
|
|
#include <stdio.h>
|
|
int main(int argc, char* argv[]) {
|
|
if(argc!=2) {
|
|
printf("Usage: tableau <file>");
|
|
return -1;
|
|
}
|
|
|
|
int T[512];
|
|
for (int i=0;i<512;i++) {
|
|
T[i] = i;
|
|
}
|
|
|
|
FILE * F = fopen(argv[1], "w+");
|
|
|
|
fwrite(T, sizeof(int), 512, F);
|
|
|
|
return 0;
|
|
}
|