Questions about the usability of the code in the blog of netizens

Source: Internet
Author: User

Recently learning C + +, write some exercises encountered a lot of trouble, so on Baidu or Bing Google, search out a lot of relevant solutions. Although the search out, but most let me wonder is that I found a lot of people's code is problematic or even wrong, this is the strength of my pit a bit, resulting in my program a lot of bugs.

To be honest, I'm not reaching out to the party, but, for example, the parameters in the Replace method that introduce a simple C + + string are wrong. The result of the program is that a few lines of text, each with the Replace method, the text from the second line beginning a small line. Because I am looping the replacement text, finally, the output is left with two lines of text.

I am a newly learned C + +, do not have to pit me ...

After searching for some of this kind of article, it seems to be more careful.

Questions about the usability of the code in the blog of netizens

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.