Hello!
I am having a problem with the following line of code:
int temporary = theMessage.size();
int numberOfColumns;
if (temporary%3 == 0)
numberOfColumns = temporary/3;
if (temporary%3 == 1)
numberOfColumns = (temporary + 2)/3;
if (temporary%3 == 2)
numberOfColumns = (temporary + 1)/3;
cout<<numberOfColumns<<endl;
int theNumbersOfTheMatrix[3][numberOfColumns];
theMessage is a string of modifiable length.
Until the point
cout<<numberOfColumns<<endl;
it works but then it says that the expression should have a constant value. Could somebody help me??