星期输出 输入星期几的第一字母来判断以下是星期几,如果第一个字母一样,则继续判断第二个字母?
)--------------------Configuration:123-Win32Debug--------------------Compiling...123....
)
--------------------Configuration: 123 - Win32 Debug--------------------
Compiling...
123.cpp
E:\VC++\123.cpp(6) : error C2065: 'grtchar' : undeclared identifier
E:\VC++\123.cpp(7) : warning C4060: switch statement contains no 'case' or 'default' labels
E:\VC++\123.cpp(9) : error C2046: illegal case
E:\VC++\123.cpp(10) : error C2143: syntax error : missing ';' before ':'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xa3'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xa9'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xa3'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xbb'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xa3'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xbb'
E:\VC++\123.cpp(14) : error C2001: newline in constant
E:\VC++\123.cpp(14) : error C2015: too many characters in constant
E:\VC++\123.cpp(15) : error C2143: syntax error : missing ')' before 'else'
E:\VC++\123.cpp(17) : error C2043: illegal break
E:\VC++\123.cpp(18) : error C2046: illegal case
E:\VC++\123.cpp(19) : error C2143: syntax error : missing ';' before ':'
E:\VC++\123.cpp(19) : error C2043: illegal break
E:\VC++\123.cpp(20) : error C2046: illegal case
E:\VC++\123.cpp(21) : error C2143: syntax error : missing ';' before ':'
E:\VC++\123.cpp(21) : error C2043: illegal break
E:\VC++\123.cpp(22) : error C2046: illegal case
E:\VC++\123.cpp(23) : error C2143: syntax error : missing ';' before ':'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xd0'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xc7'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xc6'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xda'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xc1'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xf9'
E:\VC++\123.cpp(25) : error C2017: illegal escape sequence
E:\VC++\123.cpp(25) : error C2065: 'Saturday' : undeclared identifier
E:\VC++\123.cpp(25) : error C2001: newline in constant
E:\VC++\123.cpp(25) : error C2146: syntax error : missing ')' before identifier 'n'
E:\VC++\123.cpp(27) : error C2043: illegal break
E:\VC++\123.cpp(28) : error C2143: syntax error : missing ')' before '}'
E:\VC++\123.cpp(28) : error C2143: syntax error : missing ';' before ')'
E:\VC++\123.cpp(29) : error C2047: illegal default
执行 cl.exe 时出错.
123.obj - 1 error(s), 0 warning(s
初学不懂 请问 怎么改 展开
--------------------Configuration: 123 - Win32 Debug--------------------
Compiling...
123.cpp
E:\VC++\123.cpp(6) : error C2065: 'grtchar' : undeclared identifier
E:\VC++\123.cpp(7) : warning C4060: switch statement contains no 'case' or 'default' labels
E:\VC++\123.cpp(9) : error C2046: illegal case
E:\VC++\123.cpp(10) : error C2143: syntax error : missing ';' before ':'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xa3'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xa9'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xa3'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xbb'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xa3'
E:\VC++\123.cpp(10) : error C2018: unknown character '0xbb'
E:\VC++\123.cpp(14) : error C2001: newline in constant
E:\VC++\123.cpp(14) : error C2015: too many characters in constant
E:\VC++\123.cpp(15) : error C2143: syntax error : missing ')' before 'else'
E:\VC++\123.cpp(17) : error C2043: illegal break
E:\VC++\123.cpp(18) : error C2046: illegal case
E:\VC++\123.cpp(19) : error C2143: syntax error : missing ';' before ':'
E:\VC++\123.cpp(19) : error C2043: illegal break
E:\VC++\123.cpp(20) : error C2046: illegal case
E:\VC++\123.cpp(21) : error C2143: syntax error : missing ';' before ':'
E:\VC++\123.cpp(21) : error C2043: illegal break
E:\VC++\123.cpp(22) : error C2046: illegal case
E:\VC++\123.cpp(23) : error C2143: syntax error : missing ';' before ':'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xd0'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xc7'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xc6'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xda'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xc1'
E:\VC++\123.cpp(25) : error C2018: unknown character '0xf9'
E:\VC++\123.cpp(25) : error C2017: illegal escape sequence
E:\VC++\123.cpp(25) : error C2065: 'Saturday' : undeclared identifier
E:\VC++\123.cpp(25) : error C2001: newline in constant
E:\VC++\123.cpp(25) : error C2146: syntax error : missing ')' before identifier 'n'
E:\VC++\123.cpp(27) : error C2043: illegal break
E:\VC++\123.cpp(28) : error C2143: syntax error : missing ')' before '}'
E:\VC++\123.cpp(28) : error C2143: syntax error : missing ';' before ')'
E:\VC++\123.cpp(29) : error C2047: illegal default
执行 cl.exe 时出错.
123.obj - 1 error(s), 0 warning(s
初学不懂 请问 怎么改 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询