Search
 
SCRIPT & CODE EXAMPLE
 

CPP

string reverse iterator c++

// string::rbegin/rend
#include <iostream>
#include <string>

int main ()
{
  std::string str ("now step live...");
  for (std::string::reverse_iterator rit=str.rbegin(); rit!=str.rend(); ++rit)
    std::cout << *rit;
  return 0;
}
Comment

PREVIOUS NEXT
Code Example
Cpp :: string comparison c++ 
Cpp :: calculator in cpp 
Cpp :: prime number c++ 
Cpp :: data types in c++ 
Cpp :: stl in c++ 
Cpp :: how to grab numbers from string in cpp 
Cpp :: substring in c++ 
Cpp :: c++ check if key exists in map 
Cpp :: rock paper scissor c++ 
Cpp :: Exit Button c++ code 
Cpp :: C++ program for Celsius to Fahrenheit and Fahrenheit to Celsius conversion using class 
Cpp :: loop execution decending order in c 
Cpp :: c++ get active thread count 
Cpp :: pop off end of string c++ 
Cpp :: function c++ example 
Cpp :: opencv compile c++ 
Cpp :: move elements from vector to unordered_set 
Cpp :: how to declare an enum variable c++ 
Cpp :: files in c++ 
Cpp :: clear map in C++ 
Cpp :: or in c++ 
Cpp :: stl map remove item 
Cpp :: C++ Taking Multiple Inputs 
Cpp :: memset function in c++ 
Cpp :: use declaration to define a variable 
Cpp :: c++ segmentation fault 
Cpp :: Round 1 Confusion codechef solution in c++ 
Cpp :: c++ Closest Pair of Points | O(nlogn) Implementation 
Cpp :: arduino bleutooth module hc-05 with led 
Cpp :: remove a element from an array c++ 
ADD CONTENT
Topic
Content
Source link
Name
2+4 =