error C2085: 'year' : not in formal parameter list 日期:2015-03-08 07:42:50 人气:1 error C2085: 'year' : not in formal parameter list 这是传统c的格式,你只要把{放在int main()之后, int year;之前即可