#include<iostream>
#include<string>
//using namespace std;
using std::cout;
using std::string;
using std::endl;
//use for loop
int main()
{
string a{"hello"};
for (decltype(a.size()) index = 0; index != a.size(); index++)
a[index] = 'X';
cout << a << endl;
return 0;
}
//use while loop
//int main()
//{
// string a{ "hello" };
// decltype(a.size()) index = 0;
// while (index != a.size())
// {
// a[index] = 'X';
// index++;
// }
// cout << a << endl;
// return 0;
//}