关于结构体的问题
#include<stdio.h>struct st
{
int n;
char ch;
}
void fun(struct st ex2)
{
ext2.n=ext2.n+3;
ext2.ch=ext2.ch-1;
}
int main()
{
struct st ex1={5,'t'};
fun (ex1);
printf("%d,%c",ex1.n,ex1.ch);
return 0;
}
第七行错误:Too many types indeclaration!
新手上路,请多多指教!