当前位置:网站首页>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
边栏推荐
- Thesis reading_ Chinese NLP_ LTP
- QT控制台打印输出
- [performance test] full link voltage test
- Eliminate the writing of 'if () else{}'
- Tencent music launched its new product "quyimai", which provides music commercial copyright authorization
- Leetcode exercise - 206 Reverse linked list
- 星环科技重磅推出数据要素流通平台Transwarp Navier,助力企业实现隐私保护下的数据安全流通与协作
- 「运维有小邓」用于云应用程序的单点登录解决方案
- Cmake tutorial Step2 (add Library)
- Is it safe to open an account online? What is the general interest rate of securities financing?
猜你喜欢

Sophon CE Community Edition is online, and free get is a lightweight, easy-to-use, efficient and intelligent data analysis tool

leetcode每日一练:旋转数组

VBA drives SAP GUI to realize office automation (II): judge whether elements exist

Why is all (()) true and any (()) false?

Leetcode daily question: the first unique character in the string

RSE2020/云检测:基于弱监督深度学习的高分辨率遥感图像精确云检测

求解为啥all(())是True, 而any(())是FALSE?

「运维有小邓」用于云应用程序的单点登录解决方案

JVM third talk -- JVM performance tuning practice and high-frequency interview question record

Nanjing University: Discussion on the training program of digital talents in the new era
随机推荐
星环科技数据安全管理平台 Defensor重磅发布
nano的CAN通信
开户复杂吗?网上开户安全么?
Leetcode daily question: the first unique character in the string
Leetcode daily question: merge two ordered arrays
外盘黄金哪个平台正规安全,怎么辨别?
Why is all (()) true and any (()) false?
Read libco save and restore the on-site assembly code
图扑软件数字孪生 | 基于 BIM 技术的可视化管理系统
南京大学:新时代数字化人才培养方案探讨
ISPRS2022/云检测:Cloud detection with boundary nets基于边界网的云检测
Sophon CE社区版上线,免费Get轻量易用、高效智能的数据分析工具
GFS distributed file system
Ten capabilities that cyber threat analysts should have
读libco保存恢复现场汇编代码
消除`if()else{ }`写法
删除数组中的某几个元素
星环科技重磅推出数据要素流通平台Transwarp Navier,助力企业实现隐私保护下的数据安全流通与协作
Isprs2022 / Cloud Detection: Cloud Detection with Boundary nets Boundary Networks Based Cloud Detection
Clickhouse (03) how to install and deploy Clickhouse