#include <string> #include <cstdio> int main(int argc, const char *argv[]) { std::string foo {}; foo[0] = 'f'; foo += "oo"; std::printf("%d\n", foo.size()); std::printf("%s\n", foo.c_str()); return 0; }
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#1 | 15129 | zachwhaley | Add practice directory |