#include <iostream>
#include <fstream>
#include <cstring>
#include <cctype>
#include <iomanip>

using namespace std;

const int MAX = 30;
const int MAX_HW = 10;
const int MAX_E = 3;

Yup, that's how to do it.

commented: Good answer +2
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.