Ejemplo n.º 1
0
int main(int argc, char* argv[]) {

  int iterations = 100;
  int n2_result = 0;
  int n_result = 0;
  int log_result = 0;

  n2_result = n_squared(iterations);
  n_result = linear(iterations);
  log_result = log_n(iterations);

  printf("Results.\nn^2: %d\nn: %d\nlog n: %d\n", n2_result, n_result, log_result);

  return 0;
}
Ejemplo n.º 2
0
	const bool dummy_operator_t::validate_file( const char* file_name ){
		log_n( op_name, "Dummy thinks all files are valid as is :)" );
		return true;
	};