Strings
std::string concatenation, length, substr and find.
Simple enough for a 5-year-old to understand
Concatenation and length
#include <iostream>#include <string>using namespace std;int main() { string s = "Hex"; s = s + "Library"; cout << s << " " << s.length() << endl; return 0;}🎯 Exercise & Practice
Test what you've learned — answer, write code, check instantly. (1 left)
🎯 Expected output: HexLibrary