定义物理问题的类 [英] defining class for physic problem

查看:57
本文介绍了定义物理问题的类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想创建一个射箭的物理模拟,如下图所示



请一步一步帮我详细说明,如何定义这个类。

解决方案

虽然这看起来像是一个家庭作业,这个网站有关于这样的帖子的规则,我愿意给出类的语法创建。

展开 | 选择 | Wrap | 行号


非常感谢。


这不是我的功课,我将不得不在C ++学习下学期的编程。由于我没有任何编程实验,我决定学习一门简单的编程语言,因为我的朋友和其他一些二年级学生说我应该在学习C ++之前学习Python。我和任何助手一起阅读这本书,所以有很多东西,甚至是简单的东西,我都不明白为什么。


展开 | 选择 | Wrap | 行号

I''d like to create a physic simulation of shooting a arrow as the picture below


please help me step-by-step with specific details, how to defining this class.

解决方案

Although this seems like a homework assignment and this site has rules about such post, I''m willing to give the syntax for class creation.

Expand|Select|Wrap|Line Numbers


Thank you very much.

It is not my homework, I will have to take a programming next semester in C++. Since I did not have any experiment in programming, I decided to learn an easy programming language, as my friends and some other 2nd-year students said I should learn Python before learning C++. I read the book along with out any assistant so there are many things, even easy ones, I can''t understand why.


Expand|Select|Wrap|Line Numbers


这篇关于定义物理问题的类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆