`
东边日出西边雨
  • 浏览: 258130 次
  • 性别: 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 ...

    Financial Applications Using Excel Add-in Development in C/C++

    good working knowledge of Excel, a little experience with VBA (though not necessary) and the need to make Excel do things it doesn’t really want to do, or do them faster, more cleanly, more flexibly....

    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 ...

    Programming.and.Interfacing.ATMELs.AVRs

    The book begins with the binary number system and move into programming in assembly, then C and C++. Very little prior engineering knowledge is assumed. You'll work step-by-step through sections on ...

    Cplusplus.Game.Development.Cookbook.17858

    However, there is little information available on how to harness the advanced features of C++ to build robust games. This book will teach you techniques to develop logic and game code using C++. The...

    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

    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 ...

    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- ...

    Assembly Language Succinctly Syncfusion 2013

    it shares almost nothing with high level languages Assembly languages for different CPU architectures often have little in common For instance the MIPS R4400 assembly language is very different from ...

    Modeling and Simulation of Everyday Things pdf

    2.9 Mapping Your C++ Knowledge to Other Computing Languages................. 52 2.10 Critically Thinking about Your Work: Relevance, Applicability, and Limits ............................................

    外文翻译 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