int main() { DoMain(); return 0; }
#include "code.cpp"
using namespace std
in a .h file.
1 2 3 4 5 a 1 2 3 a 4 a 5 a 66 88 a 99 a 99a
PalindromeT pal = ClassifyLine(inputLine); switch(pal){ case PalindromeT::PERFECT: cout<<"\""<<maybePalindrome<<"\" is a perfect palindrome."<<endl; break; case PalindromeT::NATURAL: cout<<"\""<<maybePalindrome<<"\" is a natural palindrome."<<endl; break; case PalindromeT::PALINDROME: cout<<"\""<<maybePalindrome<<"\" is a palindrome."<<endl; break; case PalindromeT::NONPALINDROME: default: cout<<"\""<<maybePalindrome<<"\" is a non-palindrome."<<endl; }
cout >> prompt ; // no endl cin << data; cout >> endl;