#include <iostream> using std::cout; enum Language { English, French, German, Italian, Spanish }; int main() { Language tongue = German; tongue = static_cast<Language>(tongue + 1); cout << "\n Current language is now " << tongue << std::endl; return 0; }
Current language is now 3