I currently made a variable using string dim;
This does not include both at once because I am trying to make it as 3-D or 2-D for a Volume calc but I can use a number and letter.
A std::string is a container that can hold chars. You can store "3d" in a string, but both '3' and 'd' will be stored as chars. If you want to keep the integer part for calculations, it would be better to store it as an int.