Removed "using namespace std" statements from header files in EO -- "std::" identifier were added where necessary.

This commit is contained in:
okoenig 2003-02-27 19:28:07 +00:00
commit 86fa476c67
263 changed files with 2009 additions and 1976 deletions

View file

@ -38,9 +38,9 @@ main()
pop.push_back(chrom);
}
cout << "population:" << endl;
std::cout << "population:" << std::endl;
for (i = 0; i < pop.size(); ++i)
cout << "\t" << pop[i] << " " << pop[i].fitness() << endl;
std::cout << "\t" << pop[i] << " " << pop[i].fitness() << std::endl;
// selection
@ -68,15 +68,15 @@ main()
{
ea(pop);
}
catch (exception& e)
catch (std::exception& e)
{
cout << "exception: " << e.what() << endl;;
std::cout << "exception: " << e.what() << std::endl;;
exit(EXIT_FAILURE);
}
cout << "pop" << endl;
std::cout << "pop" << std::endl;
for (i = 0; i < pop.size(); ++i)
cout << "\t" << pop[i] << " " << pop[i].fitness() << endl;
std::cout << "\t" << pop[i] << " " << pop[i].fitness() << std::endl;
return 0;
}