Answers for "string begin end c++"

C++
0

string.begin() c++

// string::begin/end
#include <iostream>
#include <string>

int main ()
{
  std::string str ("Test string");
  for ( std::string::iterator it=str.begin(); it!=str.end(); ++it)
    std::cout << *it;
  std::cout << 'n';

  return 0;
}
Posted by: Guest on October-29-2021

Code answers related to "string begin end c++"

Browse Popular Code Answers by Language