vs2013错误总结

Code sec1:

RatedPlayer(unsigned int r=0, const TableTennisPlayer &ttp);


错误说明:

missing default parameter for parameter 2

结论:默认值必须自右向左设置


Code sec2:

int main
{
	Brass Gitty("John Smith", 128, 3000.0);
}


错误说明:

type name is not allowed

结论:main函数忘了括号


Code Sec3:

private:
	enum{ MAX = 10; };
	Type items[MAX];

错误说明:

syntax error : expected ',' not ';'

结论:枚举大括号中不应该有分号




你可能感兴趣的:(c++)