Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- int main() {
- setlocale(LC_ALL, "ru");
- string text = "Hello";
- cout << text << endl;
- text = "jnjknjklnkjnjknjknjklnjkn";
- string s1;
- string s2;
- string s3;
- s1 = "abc";
- s2 = { 'a', 'b', 'c' };
- s3 = s1;
- cout << (s1 == s2) << " " << (s1 > s2) << endl;
- s3 = s1 + " " + s2;
- cout << s3 << endl;
- cout << s3.size() << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement