`
东边日出西边雨
  • 浏览: 262789 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

c,c++ little knowledge

    博客分类:
  • c
 
阅读更多

1. 把一个string型字符串全部转成小写。

 

    注释:可以用STL中的<algorithm>中的transform()函数。

 

string s = "Picky";
transform(s.begin(), s.end(), s.begin(), tolower);
cout<<s<<endl;

 

result:

            picky

 

 

 

 

分享到:
评论

相关推荐

    visual c++2008入门经典 高清pdf电子书

    ❑ You have some experience in C or C++, but not in a Microsoft Windows context and want to extend your skills to program for the Windows environment using the latest tools and technologies. ❑ You ...

    C++ Multithreading Cookbook

    a minor extension over the previous standard, C++ 11, so there is very little in the book that is C++ 14 specific. All the examples in the book can be compiled and executed using C++ 11-conforming ...

    Effective C++ 3rd Edition 55 Specific Ways to Improve Your Programs and Designs (PDF)

    Scott Meyers does a great job of figuring out what little details are important, distilling the vast sea of knowledge about C++ into the 55 specific tips that are most useful for practicing C++ ...

    Exploring C++ 11

    By learning a little bit of this and a little of that you’ll soon have amassed enough knowledge to be writing non-trivial programs and will have built a solid foundation of experience that puts ...

    Career-In-Embedded-System.zip_Windows编程_C/C++_

    It alsohelps if you have some familiarity with basic data structuresassume that you have a great deal of knowledge about computer hardwareare willing to learn a little bit about hardware along the ...

    CUDA Programming pdf

    I assume they have only an existing knowledge of the C/C++ programming language. As we progress and you become more competent with CUDA, we’ll cover more advanced topics, taking you from a parallel ...

    Linux for Developers: Jumpstart Your Linux Programming Skills

    Building on this knowledge, Rothwell introduces scripting tools such as Bash, Python, and Perl, as well as traditional object-oriented programming languages such as Java, C++, and C. Finally, he ...

    Game Engine Architecture Second Edition part 1 - Jason Gregory

    First, I wanted to update the book to include information on some new and exciting topics, including that latest variant of the C++ programming language, C++11, and the architecture of the eighth ...

    Game Engine Architecture Second Edition part 2 - Jason Gregory

    First, I wanted to update the book to include information on some new and exciting topics, including that latest variant of the C++ programming language, C++11, and the architecture of the eighth ...

    Professional Assembly Language

    The main purpose of this book is to familiarize C and C++ programmers with assembly language, show how compilers create assembly language routines from C and C++ programs, and show how the gener- ...

    外文翻译 stus MVC

    Of course, we could use Java (or PERL, C/C++ or what ever) code to generate HTML. There are several disadvantages to that approach: • Java programmers should develop services, not HTML. • Changes...

Global site tag (gtag.js) - Google Analytics