Accelerated C ++ learning notes and solutions-chapter 0

Source: Internet
Author: User

Accelerated C ++ learning notes and solutions-chapter 0

I have mentioned a lot about C ++ before, and this book is also an entry-level book. Therefore, I plan to repeat it. <字符,控制流等部分不会详细介绍,主要记录下题解就ok了.< p>

So, starting from chapter 0.

Chapter 0 describes annotations, # include commands, main functions and functions, and escape characters of input return statements.

Below are some questions:

0-2

#include 
 
  using namespace std;int main() {cout << "This (\") is a quote, and this (\\) is a backslash."<< std::endl;return 0;}
 

0-4

#include 
 
  int main() {std::cout <<"// a small C++ program\n""#include 
  
   \n""\n""int main()\n""{\n""\tstd::cout << \"Hello, world!\" << std::endl;\n""\treturn 0;\n""}" <
   
    

0-9

int main(){}

0-10

#include
     
      intmain(){std::cout<<"Hello,world!"<
      
       

Related Article

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.