Click here to Skip to main content
15,919,422 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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();
 
 
}
}


What I have tried:

I try to convert c# to c++, someone can help me.
Posted
Updated 10-Oct-17 13:08pm

1 solution

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++?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900