这样定义提示:initialization to 'char' from 'const char' lacks cast!char s[12]={"January","february","march","April","May","June","July","August",september","October","Nowenber","December"};字符串这样定义的!没有发现题目没有显示完,现在补充!

问题描述:

这样定义提示:initialization to 'char' from 'const char' lacks cast!
char s[12]={"January","february","march","April","May","June","July","August",september","October","Nowenber","December"};字符串这样定义的!没有发现题目没有显示完,现在补充!

应该用二维
char s[12][10]={"January","february","march","April","May","June","July","August",september","October"}
一维是这样
char s[3]={'A','B','C'}