>i am searching for a software that converts a c++ code into a java
>code. Can any find this to me please
The two languages are superficially similar, but you do things quite
different ways. e.g. layouts instead of absolute positioning, and
Collections instead of rolling your own.
It would be very hard to do an automated translation that worked
properly.
You can convert some sorts of code just by compiling your C in Eclipse
and gradually fixing the "errors". If you see a pattern, do a global
search/replace.
Most of the C addressing operators can either be deleted or replaced
with . and all works.

Signature
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
Wojtek Bok - 14 Feb 2006 14:52 GMT
>>i am searching for a software that converts a c++ code into a java
>>code. Can any find this to me please
>
> It would be very hard to do an automated translation that worked
> properly.
And don't forget about operator overloading.....
[shudder]
Robert Klemme - 14 Feb 2006 15:35 GMT
> >
>>> i am searching for a software that converts a c++ code into a java
[quoted text clipped - 4 lines]
>
> And don't forget about operator overloading.....
Having said that there are tools out there that do a rough basic
translation of syntax. How much work is left depends on the source code
at hand (e.g. heavy use of C++ templaces and multiple inheritance makes
efforts approach those of a rewrite from scratch very fast).
Regards
robert