diff --git a/eo/tutorial/Lesson1/FirstBitGA.cpp b/eo/tutorial/Lesson1/FirstBitGA.cpp index 4e7ea1ab1..f12344b71 100644 --- a/eo/tutorial/Lesson1/FirstBitGA.cpp +++ b/eo/tutorial/Lesson1/FirstBitGA.cpp @@ -5,10 +5,19 @@ // An instance of a VERY simple Bitstring Genetic Algorithm // //----------------------------------------------------------------------------- + +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes #include // runtime_error #include // cout +#ifdef HAVE_SSTREAM +#include +#else #include // ostrstream, istrstream +#endif // the general include for eo diff --git a/eo/tutorial/Lesson1/FirstRealGA.cpp b/eo/tutorial/Lesson1/FirstRealGA.cpp index 76556882d..392aff4aa 100644 --- a/eo/tutorial/Lesson1/FirstRealGA.cpp +++ b/eo/tutorial/Lesson1/FirstRealGA.cpp @@ -5,10 +5,18 @@ // An instance of a VERY simple Real-coded Genetic Algorithm // //----------------------------------------------------------------------------- +#ifdef HAVE_CONFIG_H +#include +#endif + // standard includes #include // runtime_error #include // cout +#ifdef HAVE_SSTREAM +#include +#else #include // ostrstream, istrstream +#endif // the general include for eo