I tried making a function that would take a string and split the characters up into an array. But I kept getting these "Exception Thrown" and "Exception Unhandled" errors that I don't even understand (I am very new to C++).
string Decrypt(string symbols) {
int length = symbols.length();
string symbolsArray[]{""};
for (int i = 0; i < length; i++)
{
symbolsArray[i] = symbols[i];
}
cout << symbolsArray;
return "";
}
I tried changing the symbolsArray[i] to just a normal integer like symbolsArray[0] and that worked just fine but obviously I don't want to be changing the first element each time.