mirror of
https://gitee.com/gaohongy/Java-Book.git
synced 2026-07-16 10:33:49 +00:00
修正c面向对象伪代码的错误
This commit is contained in:
+1
-1
@@ -131,7 +131,7 @@ struct Circle
|
||||
float y; // Y坐标
|
||||
float r; // 半径
|
||||
function void print(){
|
||||
printf("The position x=%f, y=%f, radius=%f!\n", c->x, c->y, c->r);
|
||||
printf("The position x=%f, y=%f, radius=%f!\n", x, y, r);
|
||||
}
|
||||
};
|
||||
struct Circle c1;
|
||||
|
||||
Reference in New Issue
Block a user