有谁能看懂这一串代码的
#include <cstdio>#include <cstdlib>
struct Vector;
{
float x;
float y;
float z;
};
class Body;
{
private:
Vector _coordinate;
Vector _speed;
float _mass;
public:
Body(float mass, Vector coord);
void move(Vector force, float time);
Vector get_speed();
Vector get_coord();
};
朋友给的,既不是自描述又没有注释,还让我帮他改错
后缀名好像是.h
帮忙改错一下谢谢