当前位置:网站首页>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
边栏推荐
- Anaconda中配置PyTorch环境——win10系统(小白包会)
- 外盘黄金哪个平台正规安全,怎么辨别?
- Find the first k small element select_ k
- 图像分类,看我就够啦!
- 论文阅读_医疗NLP模型_ EMBERT
- Sophon AutoCV:助力AI工业化生产,实现视觉智能感知
- Is it safe to open an account online? What is the general interest rate of securities financing?
- Interpretation: how to deal with the current security problems faced by the Internet of things?
- 使用QT设计师界面类创建2个界面,通过按键从界面1切换到界面2
- Star Ring Technology launched transwarp Navier, a data element circulation platform, to help enterprises achieve secure data circulation and collaboration under privacy protection
猜你喜欢
Nanjing University: Discussion on the training program of digital talents in the new era
What are the changes in the 2022 PMP Exam?
修复漏洞 - mysql 、es
Star ring technology data security management platform defender heavy release
寻找第k小元素 前k小元素 select_k
LeetCode每日一题:合并两个有序数组
Unicode processing in response of flash interface
求解为啥all(())是True, 而any(())是FALSE?
Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool
Star Ring Technology launched transwarp Navier, a data element circulation platform, to help enterprises achieve secure data circulation and collaboration under privacy protection
随机推荐
Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection
Sentinel flow guard
Sophon CE社区版上线,免费Get轻量易用、高效智能的数据分析工具
使用QT遍历Json文档及搜索子对象
Accuracy of BigDecimal Division
Compared with the loss of Wenxin, the performance is improved a lot
Elk log analysis system
GIMP 2.10教程「建议收藏」
nano的CAN通信
如何修改mysql字段为自增长字段
基于YOLOv3的口罩佩戴检测
Teamcenter 消息注册前操作或后操作
GFS分布式文件系统
leetcode每日一练:旋转数组
LeetCode每日一题:合并两个有序数组
Interpretation: how to deal with the current security problems faced by the Internet of things?
ISPRS2022/雲檢測:Cloud detection with boundary nets基於邊界網的雲檢測
mybash
[JMeter] advanced writing method of JMeter script: all variables, parameters (parameters can be configured by Jenkins), functions, etc. in the interface automation script realize the complete business
Cmake tutorial step1 (basic starting point)