(11) : error C2143: 语法错误 : 缺少“,”(在“:”的前面)
(11) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
(29) : error C4430: 缺少类型说明符 - 假定为 int。注意: C++ 不支持默认 int
(29) : error C2143: 语法错误 : 缺少“,”(在“:”的前面)
(29) : error C2530: “input”: 必须初始化引用
(29) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)
(30) : error C2664: “countDigits”: 不能将参数 1 从“const int”转换为“const std::string &”
原因如下: 无法从“const int”转换为“const std::string”
无构造函数可以接受源类型,或构造函数重载决策不明确
(34) : error C2143: 语法错误 : 缺少“,”(在“:”的前面)
(34) : error C2143: 语法错误 : 缺少“;”(在“{”的前面)