following is my code for "Next Pallindrome" classical problem.
// snip //
it is compiling with my turboC++ compiler but gives a compilation error from the sphere online judge. Please guide me to a correct format so that it compiles at least.
Variable i is only declared within the scope of the first loop. Declare it somewhere outside.
And really, turbo C++ is not a good measure of whether you code is valid new ANSI/ISO C++ or not.
Thanks a ton It works!You told that Turbo C++ is not a good compiler to check for ANSI. Please tell me a good compiler which you recommend for C++.
I answered your e-mail a few days ago.
"On Windows the latest compilers from Microsoft, Borland and GNU (mingw, cygwin) are all free. If you don't know what to choose try Dev-C++ for a start."