/**************************************************************** **** **** This file belongs with the course **** Introduction to Scientific Programming in C++/Fortran2003 **** copyright 2016-8 Victor Eijkhout eijkhout@tacc.utexas.edu **** **** stringrange.cxx : range over string **** ****************************************************************/ #include using std::cin; using std::cout; #include using std::string; int main() { cout << "Index" << '\n'; //codesnippet stringindex string abc = "abc"; cout << "By character: "; for (int ic=0; ic