第五章README小错误
Closed this issue · 1 comments
Dafeigy commented
ch05/#一个简单的例子,通过函数来实现面积计算时:
unsigned int getArea(Rect x) {
return a.width * a.height;
}
函数形参为x
,此处return内容应为x.width * x.height
。
guyutongxue commented
谢谢
Closed this issue · 1 comments
ch05/#一个简单的例子,通过函数来实现面积计算时:
unsigned int getArea(Rect x) {
return a.width * a.height;
}
函数形参为x
,此处return内容应为x.width * x.height
。
谢谢