示例#1
0
文件: main.cpp 项目: noelq/EpiHistory
int main()
{
  int    tab[2] = {3, 0};
  int    minimum = templateMin(tab, 2);
  std::cout << "templateMin(tab, 2) = " << minimum << std::endl;
  minimum = nonTemplateMin(tab, 2);
  std::cout << "nonTemplateMin(tab, 2) = " << minimum << std::endl;
}
示例#2
0
文件: main.cpp 项目: simbaste/CPP
int	main()
{
  int tab[5] = {4, 8, 7, 3, 2};
  //  int tab[2] = {3, 0};

  int minimum = templateMin(tab, 5);
  std::cout << "templateMin(tab, 5) = " << minimum << std::endl;
  minimum = nonTemplateMin(tab, 5);
  std::cout << "nonTemplateMin(tab, 5) = " << minimum << std::endl;
}