HISM setup in c++

Sorry for the formatting for the code, I keep trying to change it but it keeps giving me errors