src/examples/03_module/04_for_ranged/for_ranged.cpp
void loop_string_w_auto(const string &str)
{
	for (auto s : str)
	{
		cout << s << "\n";
	}
}
/*
Write code for loop_string_w_index that accepts a string parameter.
The function uses a for ranged loop using auto to iterate and display the characters in the
string as follows:
for string test displays
t
e
s
t
*/
Write code for loop_string_w_index that accepts a string parameter.
The function uses a for ranged loop using auto to iterate and display the characters in the
string as follows:
for string test displays
t
e
s
t
Write code for loop_string_w_index that accepts a string parameter . The function uses a for ranged loop using auto to iterate and display the characters in the string as follows : for string test displays t e s t
void loop_string_w_auto(const string &str)
{
	for (auto s : str)
	{
		cout << s << "\n";
	}
}
void loop_string_w_auto ( const string & str ) { for ( auto s : str ) { cout << s << " \n " ; } }
Write code for loop_string_w_index that accepts a string parameter.
Write code for loop_string_w_index that accepts a string parameter .