2009-12-24から1日間の記事一覧
いざ使おうと思ったらやりかたが分からなかったのでメモ。 #include <string> #include <iostream> int main() { std::string hello="hello world!"; for(std::string::reverse_iterator rit=hello.rbegin(); rit!=hello.rend(); ++rit){ std::cout << *rit << std::endl; } }</iostream></string>