fprintf(stderr,"Argument 2 -- %s is not an integer.\n",argv[2]);
return1;
}
/* Read the third argument into choices.write_or_print. */
ss.clear();
ss.str(argv[3]);
if(ss>>choices.write_or_print){
printf("Write = 1 and Print = 2: %d\n",choices.write_or_print);
}else{
fprintf(stderr,"Argument 3 -- %s is not an integer.\n",argv[3]);
return1;
}
std::cout<<"\n";
}
else
{choices.guided_input=true;
std::cerr<<"You can input the parameters directly when calling the executable, OR PRESS ENTER to CONTINUE and input the parameters during the upcoming dialog..."<<std::endl;
std::cerr<<"Arguments are: "<<"\n";
std::cerr<<"N: integer number of iterations"<<"\n";
std::cerr<<"frequency: integer number equal to the frequency to print results"<<"\n";
std::cerr<<"option: '1' for writing the results, '2' for printing them "<<"\n";