Does C++ have predefined text constants / string constant to be used as replacements for digits when testing errorcodes ?
An example:
if (errcode == 17){
std::cout << "The file already exists!" << std::endl;
}
To make it more readable I can write:
if (errcode == FILE_ALREADY_EXISTS){
std::cout << "File already exists!" << std::endl;
}
Of course I can define an integer constant with the name FILE_ALREADY_EXISTS and give it the value 17,
but (maybe) there are some predefined string constants / text constants defined in a standard header-file somewhere ?