а чего не в тему-то
erase_symbol(char* string, int index);
const char* str = "Hello, world!";
str = erase_symbol(str, index);
In C, string literals are of type char[], and can be assigned directly to a (non-const) char*. C++03 allowed it as well (but deprecated it, as literals are const in C++). C++11 no longer allows such assignments without a cast. A string literal is not necessarily a C string: if a string literal has embedded null characters, it represents an array which contains more than one string.
(char*)malloc
erase_symbol(char* string, int index);
char* str = "Hello, world!";
str = erase_symbol(str, index);
<cstdlib>
) в пространстве имен std. Не говоря уж о https://en.cppreference.com/w/cpp/memory/newТестовое задания
Вот задания дословно:
минуя cin>>answer.
простым языком
In many object-oriented programming languages, this (or self) is a keyword which can be used in instance methods to refer to the object on which the currently executing method has been invoked.