Hi. I have a bunch of Java codes I have done and I was wondering if there is a possible software or program to convert it into c++?
This is because I've done it in Java and now my lecturer wants it to be in c++
>< The concept is different and I have near-to-none experience in c++
In short, no.
iamthwee
Posting Expert
5,950 posts since Aug 2005
Reputation Points: 1,543
Solved Threads: 439
One reason for the "no" is that Java uses Java-specific resources.. Take the hundreds of importable classes, for example. Take swing, awt, net, etc, etc, and realize that all of these packages were written in Java and are available only to Java. Of course, almost anything you can do in Java, you can do in another language such as C++. However, the methodology and syntax is often different, especially when dealing with API calls, and data variables/structures/etc, pointers, keywords, and basically everything else. There are several minor language differences, and several major problem-solving differences. Basically, learn C++ and the APIs that go along with it, or write your program APIs from scratch following basic principals.. I'm sure another member can shed more light on the matter.
Cudmore
Junior Poster in Training
74 posts since Nov 2005
Reputation Points: 20
Solved Threads: 6
There are programs that can translate from one language to another, but they're imperfect.
They also cannot translate from programming paradigms in one language to those in another, which leaves you with very weird looking code that's a dead giveaway as having been generated by such a tool.
Almost always it's better to start from scratch.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
no, we're not going to do your homework for you.
You should have ascertained the requirements before you started hacking. As you didn't, you now have to face the consequences.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
Yes, we can give you a hand. You'll find many members reluctant to throw in an arm with that deal unless you put in just as much. That said, post some code and explain what you've tried and how it's not working and we'll see how it goes...
Infarction
Posting Virtuoso
1,580 posts since May 2006
Reputation Points: 683
Solved Threads: 53