string str = ("chen"); int x = str.length(); int temp = 0; for(int i=0; i<=x; i++) { temp++; } cout << temp << endl;
4
2
5
3