当前位置:网站首页>How to add an external header file in vs?
How to add an external header file in vs?
2022-06-25 05:16:00 【The end of the year and the beginning of the year】
Reference link :https://www.jianshu.com/p/bd17b153dae2
vs How to add an external header file in ?
Method 1 :
With Sales_item.h File as an example :
(1) Directly copy the external header file , Under this item, it is the same as this item cpp Files in the same directory , Here's the picture :
(2) At the project header file , Right click —— Add an existing item , Find out Sales_item.h File and add , Here's the picture :
(3) Write in program #include"Sales_item.h", Here's the picture :
Method 2 :
(1) Item right click , In the attribute C/C++ ----- routine , The attachment contains the path to the directory where the header file is added 
(2) Write in program #include"Sales_item.h", Here's the picture :
Be careful :(1) The directory path of the header file added in must be (2) in include“…” The upper level file of ;(2) There are multiple layers of files in / separate
边栏推荐
- Essais de pénétration - sujets d'autorisation
- Various pits encountered in the configuration of yolov3 on win10
- Qdebug June 2022
- Read the general components of antd source code
- Kotlin compose listens to the soft keyboard and clicks enter to submit the event
- Use serialize in egg to read and write split tables
- C style string
- 2021-03-23
- Creation and use of MySQL index
- Integrate CDN to create the ultimate service experience for customers!
猜你喜欢

2021-03-23

How micro engine uploads remote attachments

Penetration test - directory traversal vulnerability

Array and simple function encapsulation cases

Example of dynamic programming 3 leetcode 55

Attack and defense world web baby Web

Dynamic programming example 1 leetcode 322 coin change

buuctf web

ThinkPHP 5 log management
![[relax's law of life lying on the square] those poisonous chicken soup that seem to be too light and too heavy, but think carefully and fear](/img/12/d41f8d5abcb61d2632a8b117bf1604.jpg)
[relax's law of life lying on the square] those poisonous chicken soup that seem to be too light and too heavy, but think carefully and fear
随机推荐
Svg code snippet of loading animation
Two hours to take you into the software testing industry (with a full set of software testing learning routes)
Deeply understand the characteristics of standard flow and off standard elements
Keyboard key code value
Small sample learning data set
Reading and writing of nodejs excel (.Xlsx) files
Example of dynamic programming 3 leetcode 55
Working principle of asemi three-phase rectifier bridge
Click to jump out and drag the pop-up window
A review of small sample learning
Vue uses keep alive to cache page optimization projects
A brief talk on media inquiry
The construction and usage of wampserver framework
How to choose the years of investment in financial products?
Google Earth engine (GEE) - Global jrc/gsw1_ 1 / batch download of yearlyhistory dataset (China region)
How to make colleagues under the same LAN connect to their own MySQL database
Even if you are not good at anything, you are growing a little bit [to your 2021 summary]
Critical dependency: require function is used in a way in which dependencies
Edge loss interpretation
Database query optimization method