Вот моя пользовательская функция:
Код: Выделить всё
#include
#include
using namespace std;
string TrimTextFunction() {
string Text = "Hello I am your program!";
cout
Подробнее здесь: [url]https://stackoverflow.com/questions/78682646/why-does-my-code-involving-string-crash-when-i-put-it-into-a-function[/url]
Мобильная версия