0

How would you combained two programing languages in one project.

for example I want to use Java and c++ in one project but how would I do that.

27th Mar 2017, 6:35 PM
Daniel
Daniel - avatar
34 odpowiedzi
+ 19
@Daniel: When you write a new code, you have to choose a language. That's because every language needs a specific compiler. Java compiler doesn't compile cpp, cpp compiler doesn't compile c#. If you want to include a code from another language you have to tell the interpreter how to 'translate' every single word of it. You can do crazy stuff like this in cpp (define). But you have to include the foreign code as a string and parse it to be properly cpp code in the end. No fun for me 😂
27th Mar 2017, 7:44 PM
Tashi N
Tashi N - avatar
+ 18
@Tashi N Thanks but I didn't do anything ¯\_(ツ)_/¯
27th Mar 2017, 9:24 PM
Jafca
Jafca - avatar
+ 18
@Tashi N Can I be @Ace now? 😎
27th Mar 2017, 9:47 PM
Jafca
Jafca - avatar
+ 16
SQL is not a programming language. Java is.
27th Mar 2017, 7:49 PM
Tashi N
Tashi N - avatar
+ 16
:D @Ace If @Jafca agrees ^^
27th Mar 2017, 9:49 PM
Tashi N
Tashi N - avatar
+ 15
C++ and Java can't be compiled in one project... But you could have two applications that work together with interfaces, pipes or whatever.
27th Mar 2017, 7:10 PM
Tashi N
Tashi N - avatar
+ 15
Why do you want to do that?
27th Mar 2017, 7:26 PM
Tashi N
Tashi N - avatar
+ 15
@Siddharth Java is one (out of many others) programming language that supports sql query commands by an api. And before you mention: xml, json and so on. But these are not programming languages on their own.
27th Mar 2017, 7:35 PM
Tashi N
Tashi N - avatar
+ 15
@Daniel I would call it annoying ;) It's a query language. Even named like this.
27th Mar 2017, 7:52 PM
Tashi N
Tashi N - avatar
+ 15
No mercy to sql - BAM! :D
27th Mar 2017, 8:08 PM
Tashi N
Tashi N - avatar
+ 15
@Daniel That wasn't funny anymore. Reported for the b* word to my address.
27th Mar 2017, 8:18 PM
Tashi N
Tashi N - avatar
+ 14
[Edit] @Ace Thx for teaching me something ^^
27th Mar 2017, 8:56 PM
Tashi N
Tashi N - avatar
+ 14
😂😂😂 I'm sorry. Typo (my device auto corrects @Ace to @Jafca, some wrong tapping of mine must have put it to the dictionary like that I guess).
27th Mar 2017, 9:39 PM
Tashi N
Tashi N - avatar
+ 5
You can cross compile if you can find a compiler capable for example matlab compilers support cross compiling .NET languages can all use each other's code
28th Mar 2017, 12:53 AM
Logan New
Logan New - avatar
+ 2
how not. if i spoke SQL for one day would you call it a language?
27th Mar 2017, 7:50 PM
Daniel
Daniel - avatar
+ 2
oh my god did you just insult sql. that is so low don't worry SQL people like you. she is just jealous of you.
27th Mar 2017, 7:53 PM
Daniel
Daniel - avatar
+ 2
like using netbeans u can create application by converting your program to apk file
27th Mar 2017, 8:10 PM
Siddharth Upadhyay
Siddharth Upadhyay - avatar
+ 2
sorry I went far and being a idiot. gotta learn when to shut up.
27th Mar 2017, 9:02 PM
Daniel
Daniel - avatar
+ 1
But we can do with Java and SQL we can connect through database connectivity.
27th Mar 2017, 7:30 PM
Siddharth Upadhyay
Siddharth Upadhyay - avatar
+ 1
can you try that in solo learn?
27th Mar 2017, 7:31 PM
Daniel
Daniel - avatar