Untitled
ketronix
c_cpp
3 years ago
164 B
6
Indexable
string word = "креативный";
for(int i = 0; i < word.lenght(); i++)
{
cout << word[i] << endl;
if(word[i] = 'e')
cout << "split" << endl;
}Editor is loading...
string word = "креативный";
for(int i = 0; i < word.lenght(); i++)
{
cout << word[i] << endl;
if(word[i] = 'e')
cout << "split" << endl;
}