当前位置:网站首页>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
边栏推荐
- 模拟百囚徒问题
- rsync
- Leetcode daily question: the first unique character in the string
- Disabling and enabling inspections pycharm
- rsync
- Why is all (()) true and any (()) false?
- The comprehensive competitiveness of Huawei cloud native containers ranks first in China!
- QT控制台打印输出
- Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
- mybash
猜你喜欢
Neural network self cognition model
Cmake tutorial Step4 (installation and testing)
EPM相关
Anaconda中配置PyTorch环境——win10系统(小白包会)
求解为啥all(())是True, 而any(())是FALSE?
Unicode processing in response of flash interface
Ten capabilities that cyber threat analysts should have
Mask wearing detection based on yolov3
flask接口响应中的中文乱码(unicode)处理
南京大学:新时代数字化人才培养方案探讨
随机推荐
RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测
tkinter窗口预加载
“12306” 的架构到底有多牛逼?
深拷贝与浅拷贝【面试题3】
修复漏洞 - mysql 、es
JVM第三话 -- JVM性能调优实战和高频面试题记录
Sophon KG升级3.1:打破数据间壁垒,解放企业生产力
Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection
多线程(一) 进程与线程
基于YOLOv3的口罩佩戴检测
Action avant ou après l'enregistrement du message teamcenter
ELK日志分析系统
Compared with the loss of Wenxin, the performance is improved a lot
OpenShift常用管理命令杂记
Star Ring Technology launched transwarp Navier, a data element circulation platform, to help enterprises achieve secure data circulation and collaboration under privacy protection
星环科技数据安全管理平台 Defensor重磅发布
ISPRS2022/雲檢測:Cloud detection with boundary nets基於邊界網的雲檢測
Leetcode daily question: the first unique character in the string
How to modify MySQL fields as self growing fields
EPM相关