發表文章

目前顯示的是 4月, 2020的文章

Let's learn C++: Lec02 What is that meaning of the program(Hello World)?

Before learning C++ detail, I would like to give you a whole abstraction at first. For learning syntax, you would know, actually, it is like a "spell" in Harry Potter. You need to combine several correct words to instruct your computer how to achieve what you want in that program. ex. #include<iostream> using namespace std; int main(){     cout<<"Hello World"; }  cout<<"Hello World"; →it is an instruction to print out "Hello World" on command line, and this cout  is stored in a namespace std to let you use, but also included in a library <iostream> . Now, you have some jobs, if you do not have any idea about what is " namespace and library ", I suggest you can google it. As what I said, you need to learn these instruction in a program at first, and then you just start to throw the "spell" to do a magic. For me, if let me explain " namespace and library " briefly here, li...

Let's learn C++, Lec01 How to learn it

Hello, friends. If you are interested in C++ and even want to learn it, here is appropriate for you. I already organized main topic of C++ into 15 chapters to let you can practice. You can come to my github:(I will spend a little time in following week to share my experience) Cplus_Introduction   What is the best way to learn a programming language? I believe everyone possess different ideas about this issue. In my opinion, I suggest "Just go for it" at first. Unless you are already a programmer with some experience, I might tell you that you should know the history of the compiler version(GCC), and compare some IDE(I ntegrated Development Environment ) to choose a one you want to use. Besides, you also need to spend time on its  Standard Library and common API.  If you are just a fresh man for programming and even do not know what is OOP(Objected-Oriented Programming, some people call it OOD, Objected-Oriented Design). I won't trust you have enough ...