Accelerated C + + learning notes and----0th Chapter

Source: Internet
Author: User

I've said a lot about C + +, and this book is an entry-level book, so I'm going to go over it. Pre-< characters, control flow and other parts will not be introduced in detail, the main record under the key is OK.

So, start with the 0th chapter.

In the 0th chapter, the main content of this paper is to introduce the comments in the example of Hello World, #include命令, main function main and function, and input return statement escape character.

Here are some of the questions:

0-2

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

0-4

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

0-9

int main () {}

0-10

#include <iostream>intmain () {std::cout<< "hello,world!" <<std::endl;return0;}

Accelerated C + + learning notes and----0th Chapter

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.