#include #include using namespace std; int main(){ string s1="Juku"; string s2="Juhan"; cout << (s1>s2) << " " << s1.compare(s2) << endl; cout << s1[0] << " " << s1.at(0) << endl; s1.swap(s2); //vahetab väärtused cout << s1 << " " << s2 << endl; }