本文介绍了如何修复损坏的程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我试图制作一个用于计算轨道物体质量的程序 - 但它几乎总计。如果有人可以解决这个问题,我将永远感恩。这是代码,祝你好运。



I tried to make a program for calculating the mass of an orbiting body- but Its pretty much totaled. If someone could sort this mess out I will be eternally thankful. Here's the code, good luck.

#include <iostream>
int main()
using namespace std;{


int main ()
{
	system("pause");
	int i;
	cout <<"Input orbital period in seconds: ";
	cin >> t;
	cout << "Orbital time= " << t;
	cout << "Input Object distance from sun in meters: ";
	(cin >> d;
	cout << "Orbital distance= " << d;

	g = (6.6 * 10^-11)

	m = (d^3 * (4 * 3.14159)^2) / (g * (t^2))

	cout << "Object mass= " << m;



}</iostream>

推荐答案




这篇关于如何修复损坏的程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 12:49