C error C2078:too many initializers#include "stdafx.h"#include "stdio.h"int toascii(char c){\x05return ((int) c);}void main(){\x05char s; int mycount[3]={0,0,0,0};\x05while((s=getchar())!='\n')\x05{\x05\x05if((toascii(s)>=toascii('A') && toascii(s)=t

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/25 20:44:57
CerrorC2078:toomanyinitializers#include"stdafx.h"#include"stdio.h"inttoascii(charc){\x05return((int)

C error C2078:too many initializers#include "stdafx.h"#include "stdio.h"int toascii(char c){\x05return ((int) c);}void main(){\x05char s; int mycount[3]={0,0,0,0};\x05while((s=getchar())!='\n')\x05{\x05\x05if((toascii(s)>=toascii('A') && toascii(s)=t
C error C2078:too many initializers
#include "stdafx.h"
#include "stdio.h"
int toascii(char c)
{
\x05return ((int) c);
}
void main()
{
\x05char s; int mycount[3]={0,0,0,0};
\x05while((s=getchar())!='\n')
\x05{
\x05\x05if((toascii(s)>=toascii('A') && toascii(s)=toascii('a') && toascii(s)

C error C2078:too many initializers#include "stdafx.h"#include "stdio.h"int toascii(char c){\x05return ((int) c);}void main(){\x05char s; int mycount[3]={0,0,0,0};\x05while((s=getchar())!='\n')\x05{\x05\x05if((toascii(s)>=toascii('A') && toascii(s)=t
int mycount[3]={0,0,0,0};
改成int mycount[4]={0,0,0,0};