コード例 #1
0
ファイル: recommend.c プロジェクト: smorad/cmps101
/*Parses initial input*/
void readInput(FILE *f){
	int numCustomers;
	fscanf(f,"%d", &numCustomers);
	int numTransactions;
	fscanf(f,"%d", &numTransactions);
	int throwAway;
	fscanf(f, "%d", &throwAway);
	readTransactions(f, numCustomers, numTransactions);
}
コード例 #2
0
ファイル: Store.cpp プロジェクト: rafaeldamasceno/Vendepp
void Store::load()
{
	readCustomers();
	readProducts();
	readTransactions();
}