All pastes #736789 Raw Edit

Something

public text v1 · immutable
·published 2007-10-14 20:42 UTC
rendered paste body
#include <stdio.h>
#include <stdlib.h>

main(){
	FILE *f;
	float per[21];
	int i=-1;
	char font[100], temp[3];

	f = fopen("results.txt", "r");

	if (!f){
		printf("Lathos kata to anoigma tou arxeiou\n");
		return;
	}

	while (!feof(f)){
		i++;
		fscanf(f, "%s %d %s", font, &per[i], temp);
	}
	fclose(f);

/*	qsort((void *)per, 0, sizeof (int), 0);*/

	f=fopen("skata.txt", "w");
	for (i=0;i<21;i++)
		fprintf(f, "%d\n", per[i]);
}