Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

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 << '
';

  return 0;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged:
ADD COMMENT
Topic
Name
2+1 =