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.
34 Answers
+ 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 š
+ 18
@Tashi N Thanks but I didn't do anything ĀÆ\_(ć)_/ĀÆ
+ 18
@Tashi N Can I be @Ace now? š
+ 16
SQL is not a programming language. Java is.
+ 16
:D
@Ace If @Jafca agrees ^^
+ 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.
+ 15
Why do you want to do that?
+ 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.
+ 15
@Daniel I would call it annoying ;)
It's a query language. Even named like this.
+ 15
No mercy to sql - BAM! :D
+ 15
@Daniel
That wasn't funny anymore. Reported for the b* word to my address.
+ 14
[Edit] @Ace
Thx for teaching me something ^^
+ 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).
+ 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
+ 2
how not. if i spoke SQL for one day would you call it a language?
+ 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.
+ 2
like using netbeans u can create application by converting your program to apk file
+ 2
sorry I went far and being a idiot. gotta learn when to shut up.
+ 1
But we can do with Java and SQL we can connect through database connectivity.
+ 1
can you try that in solo learn?