Foreword
Hello, Everyone we also meet at my artcle, I just is a common person, I think you already insist to learn C have long time. I believe in you, you will better than before. I have some things need me to process, if you couldn’t wait my passage updation, I advise you continue to learn these knowledges, the reason is learning will let us out of fool and stupid.
The C++ History and C++ discussion
C++ was originally invented in 1979 by the danish developer Bjarne Stroustrup. However, it was only in 1983, that the first version of C++ was released to the public. It quickly gained popularity among programmers worldwide and was adopted by many companies as well. It is regarded as a “middle-level” language, as it comprises a combination of both high-level and low-level language features.
Install Compiler and Code a example
About the Compiler, we could select GNU, it include gcc and g++ compiler, Maybe we code C program could use g++【The reason is C some rules as same as C++】, but we should use g++ as C++ compiler. The Compiler Install could follow my C article. In C passages, I instruct the Compiler install process.
Code:
//The Codes in the day1.cpp file#include<iostream>
// void test1();int main(){std::cout << "I like C++\n";std::cout << "I also like C!!\n";// test1();// return 0;
}
From the above codes, we know the codes in day1.cpp
file. It will print two sentences output on computer screen. But we must compile the codes, then the program just could run. For the C++ IDE, I advise HBuilderX or Eclipse.
The process like the below picture.
In the end
I gratitude for your watch my articles, only I just record my learning notes, I believe in if you insist to learn C++, you will stronger than before. C++ is hard for Beginer, but please you remember give up or give in so easy, if you never surrender is very cool!! Cheer!! my dear friends, your Pan(One of common persons).