c结构错误 [英] c structure errors

查看:68
本文介绍了c结构错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是c的学生,无法理解为什么这个程序一直给我带来错误

感谢您的帮助

im a student of c and cant get why this program keeps bringin me errors
thanks for the help

展开 | 选择 | 换行 | 行号

推荐答案


我是c的学生,不能理解为什么这个程序一直给我带来错误

谢谢帮助

#include< stdio.h>

main()

{

struct database [20] ;

{

char namec [6];

int work_h;

};

}
im a student of c and cant get why this program keeps bringin me errors
thanks for the help
#include<stdio.h>
main()
{
struct database[20];
{
char namec[6];
int work_h;
};
}



结构数据库的声明在哪里?

Where is the declaration for the struct database?



struct数据库的声明在哪里?
Where is the declaration for the struct database?



结构的开头

struct database

in the start of the structure
struct database



在结构的开头

struct database
in the start of the structure
struct database



哦。你的代码应该是这样的

Oh. Your code should look something like this

展开 | 选择 | Wrap | 行号


这篇关于c结构错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆