how to set a string equal to another string cpp

#include <iostream>
#include <string>

int main() {
    std::string firstString = "Hello, ";
    std::string secondString = "world!";

    // Set firstString equal to secondString
    firstString = secondString;

    // Display the updated firstString
    std::cout << "Updated firstString: " << firstString << std::endl;

    return 0;
}