/**
 * \brief Adjust the components of the layer.
 * \param elapsed_time Elapsed time since the last call.
 */
void bear::level_loader_progression_item::progress
( universe::time_type elapsed_time )
{
  super::progress(elapsed_time);

  const unsigned int item_index  = get_item_index();
  const unsigned int items_count = get_items_count();

  m_item_bar.set_width( item_index * (unsigned int)get_width() / items_count );
} // level_loader_progression_item::progress()
예제 #2
0
파일: Matrix Lib.c 프로젝트: PRFina/ADT
int main(void) {


	DATABASE DB;
	FILE *file;
	//char file_path[256] ="C:\\Users\\Pio\\Desktop\\MAT LIB\\SMatrix.txt";
	char file_path2[256] ="C:\\Users\\Pio\\Desktop\\MAT LIB\\OUT.txt";



	if( (file=fopen(file_path2, "r")) != NULL)
	{
		DB.size=get_items_count(file);
		DB.item= alloc_DataBase(DB);

		read_DataBase_file(file, DB);
		print_DataBase(DB);

		sort_DataBase_ID(DB);
		print_DataBase(DB);

		sort_DataBase_number(DB);
		print_DataBase(DB);

	}
	else
		perror("ERRORE:");





	fclose(file);
	//fclose(file_out);
	free_DataBase(DB, &DB.size);

	system("pause");
	return EXIT_SUCCESS;
}