struct hoso{
	int stt;
	char ten[100];
	float nhap;
	float xuat;
};

int count(){
	int c=0;
	hoso goods[100];
	FILE *p = fopen( "B18DCCN526.txt", "r");
	char s[60];
	while( fscanf( p, "%d", &goods[c] . stt) != EOF){
		fgets( goods[c] . ten, 40, p);
		fscanf( p, "%.2f%.2f" ,&goods[c] . nhap, &goods[c] . xuat);
		c++;	
	}
	fclose(p);
	return c;
}