string erase

#include <iostream>
#include <string>

int main() {
    std::string str = "Hello, World!";

    // Erase a single character at position 7
    str.erase(7, 1);

    // Erase a range of characters from position 0 to 5
    str.erase(0, 5);

    // Output the modified string
    std::cout << str << std::endl;

    return 0;
}