当前位置:网站首页>Introduction to VC programming on "suggestions collection"
Introduction to VC programming on "suggestions collection"
2022-07-05 18:01:00 【Full stack programmer webmaster】
Hello everyone , I meet you again , I'm your friend, Quan Jun .
learn VC It's not so difficult as the legend , You can't learn without some effort . I can't wait to learn programming , Learn without the basic knowledge of programming VC It must touch a head of ash , say VC The difficulty lies in this . If hard , If you have a strong will, you can survive , But in the end, I have to go back to the basics . If the will is not strong , It is likely to give up , And leave one VC A rare impression .
Actually , As long as we take it step by step , learn VC It's simple . For people who have no programming foundation, they should first learn the basic knowledge of programming , Such as variable , sentence , Basic algorithms, etc , Then write some small programs , Implementing some common algorithms is a good exercise for your thinking , It's good for future study . At least be able to sort , Ask for eight queens , Count hanrota , Know a little more 、 Breadth first search . If you already have some basic knowledge of programming , Naturally, you can skip this step . After having a certain understanding of programming , We should start to March C++ 了 . Be careful ,C++ It's a language , and VC Is to explain how to VC Environmental use MFC Class library , Study VC Should be built on a full understanding of C++ On the basis of .
learned C++, You'd better find this first Win32 Programming book ,Win32 Programming means using Windows API Programming ,MFC It's going to be a lot of API Function is encapsulated in the class library , It is convenient to use , But if there isn't some API Programming based , Do not understand relevant concepts , start to learn sth. MFC It may be difficult to understand .API Function has 2 Thousands more , You don't have to learn everything . In fact, as long as you know how to create a window 、 Dialog box 、 Control 、 Message loop , It's almost enough to understand the meaning of handle , Better know a little more GDI Programming . The key to this stage is to understand Win32 How the program works , Grasp the relationship between various windows . Because you should seldom use it directly in the future Win32 SDK Programming , So the key is to understand the whole structure , It doesn't make sense to remember a few functions . When using the function, you can check .
Laid the foundation , March now VC All the obstacles have been cleared . However, we should be fully prepared , Things won't go so smoothly . At the beginning, you have to face a bottleneck , A lot of closely related knowledge , Make you have to understand a whole , And it's hard to come a little . It can be said that learning VC The most difficult thing is to just start . The situation is somewhat similar to the long program faced when creating the window for the first time , Many people are baffled by it here , Give up learning . in fact , It's almost Windows A major feature of programming , After breaking through this bottleneck, there is a vast sea and sky , And with a solid foundation, you are sure to break through . It is suggested not to wait until you understand one sentence thoroughly before reading the next , Wait until you can make a menu 、 Dialog box, then look back again , After several times, you should be able to roughly understand MFC The operation of the program . Here's a key , Be sure to experience the spirit of object-oriented programming , Try to connect the current program with previous knowledge . By comparing the member function with the corresponding API The difference between functions , Try to understand MFC How to package related API Of . for example , Quite a few macros , It looks strange , But you don't have to pay attention to its implementation , Just know how to use it , It's also important . also , Analyze the generated code by yourself , If you are lazy, you can't really understand MFC.
This is my personal learning experience , But experience varies from person to person , Therefore, it also needs to be decided according to personal conditions . At the beginning of the , Do what the textbook tells you , Make a menu better than a cat drawing a tiger 、 Dialog box , Then try adding controls . Wait until you do this without looking at the tutorial , Start trying to understand word for word MFC Organization of procedures . If you don't understand, skip to the following . Just do it again and again . If you feel your head is big, rest first 2 God , Wait until you wake up , It's best to find more introductions during this period MFC Framework article . Then try to write a timer 、 Small things like business cards , Be familiar with the use of various controls .
After breaking through the bottleneck at the beginning, it will be easier to learn , Because you can accumulate knowledge bit by bit , Don't worry about getting stuck . Soon, , You can use it API Function completes some functions , Such as adding icons to the system tray , Self drawn list box, etc . At this time , You will also experience learning Win32 The benefits of programming .
Last , It is suggested to study various algorithms if you have time . Data structure must be seen . You don't have to remember , But at least you have to know something like that , In case of a problem, you can know where the problem is . Actually , Common structures such as linked lists and sorting algorithms are C++ The standard template has been implemented , Don't bother , But some understanding is always good . As for Discrete Mathematics 、 Linear algebra or something , It is necessary for complex algorithms , Discrete mathematics is the basis of data structure .
Publisher : Full stack programmer stack length , Reprint please indicate the source :https://javaforall.cn/149828.html Link to the original text :https://javaforall.cn
边栏推荐
- QT console printout
- Which platform of outer disk gold is regular and safe, and how to distinguish it?
- Huaxia Fund: sharing of practical achievements of digital transformation in the fund industry
- Neural network self cognition model
- Operation before or after Teamcenter message registration
- nano的CAN通信
- flask接口响应中的中文乱码(unicode)处理
- Unicode processing in response of flash interface
- ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
- Sophon autocv: help AI industrial production and realize visual intelligent perception
猜你喜欢
Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
Ten top automation and orchestration tools
华夏基金:基金行业数字化转型实践成果分享
Zabbix
What are the changes in the 2022 PMP Exam?
职场进阶指南:大厂人必看书籍推荐
IDC report: Tencent cloud database ranks top 2 in the relational database market!
Thesis reading_ Chinese NLP_ LTP
Leetcode exercise - 206 Reverse linked list
星环科技数据安全管理平台 Defensor重磅发布
随机推荐
Daily exercise: a series of dates
Anaconda中配置PyTorch环境——win10系统(小白包会)
数据访问 - EntityFramework集成
matlab内建函数怎么不同颜色,matlab分段函数不同颜色绘图
Knowing that his daughter was molested, the 35 year old man beat the other party to minor injury level 2, and the court decided not to sue
How to save the trained neural network model (pytorch version)
2022新版PMP考试有哪些变化?
Cmake tutorial Step3 (requirements for adding libraries)
较文心损失一点点性能提升很多
GFS distributed file system
Leetcode daily question: the first unique character in the string
Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection
rsync
Career advancement Guide: recommended books for people in big factories
Action avant ou après l'enregistrement du message teamcenter
登录连接 CDB 和 PDB
mybash
含重复元素取不重复子集[如何取子集?如何去重?]
Interpretation: how to deal with the current security problems faced by the Internet of things?
多线程(一) 进程与线程