Visual Studio Code – Why does my code involving "string" crash when I put it into a function?
I am trying to run a simple program in C++ which basically counts the amount of symbols using the length() function from the <string> library of C++. Here's my custom function: #include <iostream> #include <string> using namespace std; string TrimTextFunction()…