Pay tribute to Bjarne Stroustrup!
C ++ is an efficient object-oriented programming language. I used to take C ++ programming language courses at a university. So far, I am not very familiar with C ++. I usually seldom practice C ++, it is rare to use pure C ++ to solve the problem. Why? In the development of embedded Linux, C language is mainly used, and most of them are C/C ++ mixed programming. Therefore, there is still no complete learning and practice solution for C ++.
I have always wanted to relearn the great C ++ language. Recently, I have been spending some time to enjoy the fun of C ++ under N, Happy Programming! Review C ++'s learning notes will be recorded in my CSDN blog, so that you can continue to stick to it.
In Linux, although C language is the mainstream, C ++ is also a very good choice. For me, C ++ cannot be left alone. She is a very important part of my mind. In this learning process, we will fully think about problems and write programs based on C ++, which is completely pure C ++ and will not be linked to C.
In Linux, G ++ is generally used to compile C ++ programs. In the process of reviewing C ++, in order to reduce valuable time, instead of using Linux, I will use the MinGW tool of GNU windows to compile the C ++ program. Windows is still the king in the graphic interface field. (because my father is not powerful, I have to learn it on the Windows platform for efficiency ).
I will use Code: Blocks as the IDE for compiling C ++ programs. Code: Blocks introduction:
Code: Blocks is an open source full-featured cross-platform C/C ++ integrated development environment. Code: Blocks is an open source software. Code: Blocks is developed by pure C ++. It uses the graphic interface library wxWidgets (2.6.2 unicode) with the alias. For C ++ programmers pursuing perfection, they no longer have to endure the slowness of Eclipse and the huge and high price of VS. NET.
The latest Code: Blocks integrated development environment has integrated the MinGW tool into the installation package. This IDE is my first choice. I learned about the Code: Blocks tool tutorial on the Internet, now you can compile the program normally. I found a relatively good Code: Blocks tool related tutorial, detailed, click to download: codeblockstutorial. In CodeBlocks, you can set the C ++ help document. Click to download: cppreference. chm and cppreference Chinese version. chm.
Windows Version Code: Blocks official download page: http://www.codeblocks.org/downloads/26#windows
Two official downloads are available:
1.codeblocks-10.05mingw-setup.exe is integrated with the mingw tool (gcc g ++ gdb) by default!
2.codeblocks-10.05-setup.exe does not integrate the mingw Tool
I have posted several codes: Blocks compiled program:
1. Enable the Starting Screen of Code: Blocks:
2. Edit the C ++ code:
3. program running window:
This blog does not describe Code: blocksusage. The main idea is codeblockstutorial.
Keep the enthusiasm for learning C ++ popular, and the joy of programming has always been with you.
From the gzshun Column