当前位置:网站首页>Why is it not enough to declare the structure alias when using the structure variable of other files in C language, and the proper name must be used? (cannot add struct when using alias)
Why is it not enough to declare the structure alias when using the structure variable of other files in C language, and the proper name must be used? (cannot add struct when using alias)
2022-06-28 19:27:00 【Dontla】
problem
Pictured , I am here a Files use b The structure variable of the file , When declaring a structure , You have to use the real name of the structure
kyai.h
kyai.c
demo_main.c
Not by alias 

reason
Alias cannot be added struct, Otherwise, it will report a mistake
It can be like this
demo_main.c
Be careful , When creating a structure , You can't add... When using aliases struct, Will report a mistake
kyai.c

That's all right 
Reference article : How to .c File declares another .c The structure defined in the file ?
边栏推荐
- 我是刚购买的adb mysql服务,我每做一个操作,比如建表,都会弹出这个问题,请问这是什么问题?
- 找出连续7天登陆,连续30天登陆的用户
- Friends from Fujian, your old-age insurance is on the cloud!
- AOSP Tsinghua image download error resolution
- 腾讯汤道生:面向数实融合新世界,开发者是最重要的“建筑师”
- [C #] explain the difference between value type and reference type
- Some error prone points of C language pointer
- The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation
- Variational graph auto-encoders (VGAE)
- Cvpr2022 | Zhejiang University and ant group put forward a hierarchical residual multi granularity classification network based on label relation tree to model hierarchical knowledge among multi granu
猜你喜欢

180.1. Log in continuously for n days (database)

The white paper on the panorama of the digital economy and the digitalization of consumer finance were released

How to learn JS through w3school / how to use the JS reference manual of w3school

Win11如何给系统盘瘦身?Win11系统盘瘦身方法

Markdown绘图mermaid实用教程

大火的虚拟人在哪些产业开始发力?

Brief introduction to mongodb working principle of mongodb series

Graduation project - Design and development of restaurant management game based on unity (with source code, opening report, thesis, defense PPT, demonstration video and database)

Variable autoencoders (vaes)

NanoPC-T4(RK3399) game1 oled(I2C)显示时间天气温度
随机推荐
Month on month SQL implementation
多测师肖sirapp中riginal error: Could not extract PIDs from ps output. PIDS: [], Procs: [“bad pid
找出连续7天登陆,连续30天登陆的用户
rancher增加/删除node节点
华为云OneMeeting告诉你全场景会议这么开!
matlab 受约束的 Delaunay 三角剖分
Win11底部状态栏如何换成黑色?Win11底部状态栏换黑色的方法
PCL 计算平面三角形外接圆的圆心和半径
道路千万条,为什么这家创新存储公司会选这条?
Variational graph auto-encoders (VGAE)
Leetcode 周赛299
颜色渐变的FontAwesome图标
Cvpr2022 | Zhejiang University and ant group put forward a hierarchical residual multi granularity classification network based on label relation tree to model hierarchical knowledge among multi granu
AOSP Tsinghua image download error resolution
How to change the status bar at the bottom of win11 to black? How to change the status bar at the bottom of win11 to black
PCL calculation of center and radius of circumscribed circle of plane triangle
The amazing nanopc-t4 (rk3399) is used as the initial configuration and related applications of the workstation
直播app系统源码,动态遇到视频时开始自动播放
Get the timestamp of 0:00 and 23:59 of the current date
shell读取Json文件的值