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/28 08:44:34
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};