+ 8
How to convert from one programming language to another?
¿Cómo convertir de un lenguaje de programación a otro?
15 Respuestas
+ 7
Got it, you're asking a new question for the same question "How to create Android apps with Python"...
Well Caleb, converting from one language to another is a very difficult task, you must have a good understanding of those two languages. That is the only real and safe way to do what you want. I recommed you to learn the fundamentals of computer programming, but I won't lie to you, even when you learn it, your code would be a disaster, because each programming language has its own characteristics.
There are also some programs that convert the code given in one programming language to another, for example C to assembly, but there is an intermediary there, a program converts the C code to assembly code, however, there are more problems than that, it has to be a program that ensures fast code, makes some changes to the code in the conversion process, but ensures that those changes won't make your code slower than expected, etc.
+ 5
Simba
What is an Apple translator?
+ 4
Write pseudo code using source code.
Now, write code in target language using pseudo code you written.
Pseudo code:
Code irrespective of language focused on logics and process.
Hope it helps you.
+ 4
Rational
Yes and no, because I need how to convert, for example, .java to .cpp, no knowing the other language.
+ 4
If you are crazy enought you could try to compile your code in one language and then decompile it with other language, fix the errors and pray for all to be working.
+ 3
Yes, Brian A, something that.
+ 3
Caleb Guerra Ortega search the internet for “java to c++ converter”. i see that converters exist but Ive never tried those so I cant tell you how well it will work.
+ 3
I would recommend learning the fundamentals of coding. Typical things like data types and how to make loops get out of loops and etc…. Once this is achieved you would be able to go to different coding languages with ease as there are subtile differences like syntax. There is a caveat there are strongly typed languages and loosely typed ones as well. Start off on a lossely typed language like javascript or python get good then try to write the same code in a different language.
+ 3
Hacker-KR4636
Got it
+ 2
Maybe, you need an Apple translator?
You just have to learn the syntax of the both languages.
+ 2
I'm working on one...
+ 2
i don’t think you can do it without knowing both languages to some extent. It sounds like you want a converter program to do it automatically?
+ 2
Caleb Guerra Ortega As you mentioned you need to convert .Java to .CPP .
I suggest you to understand .Java code. And write code modules or functions used in sequential order. Mainly focus on objective of the problem.
Now convert it to .CPP .
Prerequisites:
1. Know the syntax of source and target languages
2. Get the what exactly the problem is, and solution is, it's process.
I don't think I'm deviated from original discussion.
+ 2
Para convertir de un lenguaje a otro primero debes entender los lenguajes ya que debes adaptar un código a otro.
+ 2
In this case decompiling the code in java can't work because of the way of functioning of the java language. It works in an emulated virtual machine thus it has a pseudo machine language which doesn't match with the original machine 😅😅😅