Datový typ “string”

{“https:\/\/www.jdoodle.com\/a\/bNU?format=text”:”#include <iostream>\n#include <string>\nusing namespace std;\n\nint main() {\n string s1("Ahoj");\n string s2 = "sv\u011bte";\n string s3 = "!!!!";\n string s4;\n s4 = s3;\n \n cout << s1 << ", " << s2 << s4 << endl;\n return 0;\n}\n”,”https:\/\/www.jdoodle.com\/a\/bNW?format=text”:”#include <iostream>\n#include <string>\nusing namespace std;\n\nint main() {\n string s1("Ahoj");\n string s2 = "sv\u011bte";\n string s3 = "!!!!";\n string s4;\n s4 = s3;\n \n string pozdrav = s1 + ", " + s2;\n pozdrav += s4;\n \n cout << pozdrav << endl;\n return 0;\n}\n”}


Datový typ “string”
Ohodnoťte tento článek