I\'m trying to make a Gematria calculator in c++ and want to get the same results i am getting in java. How would I get so in C++ it could print the sum of the values from w