need help with translate c++ into java
Started by
Guest_Nolla_*
, Mar 26 2007 02:02 AM
4 replies to this topic
#1
Guest_Nolla_*
Posted 26 March 2007 - 02:02 AM
Guest_Nolla_*
i need some help tranleting my c++ program into a java program.
|
|
|
#2
Guest_Jordan_*
Posted 26 March 2007 - 03:37 AM
Guest_Jordan_*
That shouldn't be too hard since Java is similar to C++. You can try changing the name of the C++ file to .java and compiling with javac. Fix all of the errors you find.
#3
Posted 26 March 2007 - 08:42 AM
It'll be a little more complicated. The #includes need to change, the main function needs to be changed to the main class. The logic and class structures shouldn't change much, as long as there's no overloading.
#4
Posted 17 April 2007 - 07:31 AM
Jordan said:
That shouldn't be too hard since Java is similar to C++. You can try changing the name of the C++ file to .java and compiling with javac. Fix all of the errors you find.
You do make it sound easy, but I am sure that even this will take some time.
#5
Posted 17 April 2007 - 07:41 AM
Jordan said:
That shouldn't be too hard since Java is similar to C++. You can try changing the name of the C++ file to .java and compiling with javac. Fix all of the errors you find.


Sign In
Create Account


Back to top










