我需要将C#的这个问题转换为C ++ [英] I need to convert this problem of the C# to C++

查看:72
本文介绍了我需要将C#的这个问题转换为C ++的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

static void Main(string[] args)
{
 
 
string[] planet = new string[]{"Mercury", "Venus", "Earth", "Mars", "Jupiter", "Saturn", "Uranus","Neptune"};
double[] diameter = new double[] { 4879, 12104, 12756, 6792, 142984, 120536, 51118, 49528 };
Console.WriteLine("Each planet and its diameter are shown below:");
for(int i=0;i<8;i++)
{
Console.Write("\nPlanet: "+planet[i]);
Console.Write("\tDiameter: "+diameter[i]);
}
Console.ReadLine();
 
 
}
}





我的尝试:



我尝试将c#转换为c ++,有人可以帮助我。



What I have tried:

I try to convert c# to c++, someone can help me.

推荐答案

所以你需要从C#移植到C ++,好的。



现在你要求我们免费开展你的工作,这不是它的工作原理。我们愿意帮助您解决陷入困境的具体问题,但我们不会为您工作。

除非您想聘请我们任何人作为付费顾问,在这种情况下我们我会很高兴为你工作换取你的钱:-)



如果您希望得到答案,请表明您通过回答这些问题付出了部分努力问题:

你到目前为止尝试了什么?

你不知道如何在C ++中转换成匹配的构造?
So you need to port from C# to C++, OK.

Right now you ask us to do your work for free and this is not how it works. We are willing to help you with specific questions where you get stuck, but we don't do your work for you.
Unless you want to hire any of us as a paid consultant, in this case we will happily do your work for you in exchange for your money :-)

If you expect an answer, show that you put in your part of the effort by answering these questions:
What have you tried so far?
Which constructs do you not know how to convert into the matching construct in C++?


这篇关于我需要将C#的这个问题转换为C ++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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