標(biāo)題: 報(bào)錯(cuò)代碼main.c(43): error C200: left side of '.' requires struct/union [打印本頁(yè)] 作者: lovelyking 時(shí)間: 2024-2-4 15:08 標(biāo)題: 報(bào)錯(cuò)代碼main.c(43): error C200: left side of '.' requires struct/union 在論壇里看到了一樣的問題但是我聲明了結(jié)構(gòu)體為啥還是報(bào)錯(cuò)
提前謝謝大佬解答
代碼主函數(shù)
void main ()
{
struct ntime
{
int year;
int month;
int day;
int clock;
int minute;
int second;
};//創(chuàng)建時(shí)間結(jié)構(gòu)體變量
struct ntime time (year,month,day,clock,minute,second)
{
struct ntime
{
int year;
int month;
int day;
int clock;
int minute;
int second;
};//創(chuàng)建時(shí)間結(jié)構(gòu)體變量
int a []={1,3,5,7,8,10,12};
int Maxday=0;
int i=7;