1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
|
// Consider naming your class with a capital letter, i.e. Functions. It's more
// stylistic, and also may avoid some trouble esp if you're using the std namespace,
// since many of those classes begin with lowercase letters.
class Functions
{
// Simpler to align public: and private: with the opening of class bracket because, for the
// most part, it unnecessarily indents everything else.
private:
// Adding an underscore is a common way to show private var at a glance
vector<char> alphabet_;
public:
Functions() // Constructor
{
alphabet_ = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z'};
}
};
|