Playground
#include <iostream> #include <string> using namespace std; int main() { string a, b; a = "prva"; b = "vtora"; cout << a.size() << endl; //pechati '4' cout << b.size() << endl; //pechati '5' a = a + " " + b; cout << a << endl; //pechati 'prva vtora' b = b + b; cout << b << endl; //pechati 'vtoravtora'; return 0; }
Input data
Program output
no input
Execute
Language: ????????? | Memory: ???? KB | Time: ??? ms
Nothing has been executed, yet!