| | |
Java to C++
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
•
•
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++
*Voted best profile in the world*
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.
synchronized (theWorld) { System.out.println ("It's all mine..."); }
How many people have code in their Sigs?
How many people have code in their Sigs?
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.
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.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
•
•
Join Date: Sep 2006
Posts: 7
Reputation:
Solved Threads: 0
Firstly, No I did not ask you to do my homework for me. I was just asking if you could help me convert a function (small part of coding) into c++. As I have stated in the first post, I'm a newb.
Second, I clearly didn't see where I am hacking.
So please read and try to understand before shooting at me.
Second, I clearly didn't see where I am hacking.
So please read and try to understand before shooting at me.
![]() |
Similar Threads
- Java 3D Environment (Java)
- Java 3D (Java)
- Java Expert (Needed) (Java)
- Java Chat Reboots (Java)
Other Threads in the Java Forum
- Previous Thread: help me please
- Next Thread: Please help !
| Thread Tools | Search this Thread |
911 actionlistener addressbook android api append applet application array arrays automation binary bluetooth character chat class classes client code component consumer csv database desktop draw eclipse error event exception fractal ftp game givemetehcodez graphics gui html ide image input integer j2me japplet java javaarraylist javac javaee javaprojects jmf jni jpanel julia linked linux list loop map method methods mobile netbeans newbie objects online oracle oriented panel print printf problem program programming project projects properties recursion replaydirector reporting researchinmotion robot rotatetext rsa scanner screen se server set size sms sort sql string swing template test threads time tree ubuntu update windows






