Fix the error

"set_union.cpp", line 55: Error: The function "atoi" must have a prototype.
detected by Sun CC.
This commit is contained in:
Laurent Rineau 2008-03-11 12:09:01 +00:00
parent b6e3c307dc
commit 5e06f05acd
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ int main (int argc, char * argv[])
{
// Read the number of circles from the command line.
unsigned int n_circles = 8;
if (argc > 1) n_circles = atoi(argv[1]);
if (argc > 1) n_circles = std::atoi(argv[1]);
// Create the circles, equally spaced of the circle x^2 + y^2 = 1.
const double pi = std::atan(1.0) * 4;