Strings In Depth1 / 15
Up next

std::string basics

#include <print>
#include <string>

int main() {
    std::string s = "hello";
    s += ", world";
    std::println("{} ({} chars)", s, s.size());
}
What you're solving

create and grow an owned string