+ 27
Can I combine two programming languages when creating a software?
for example usng c# and c++ together at once
49 Antworten
+ 47
C# and C++ wouldn't be written together in one project. You would have two projects, one in C# and one in C++. Make the C++ project and build it as a library (.dll) that is then used in your C# project which builds into an executable file (.exe)
That's one example at least.
Although you would have to have a good reason why you would like to do that. Most of the time it's enough to use one language.
+ 21
It is possible to combine different languages in one project, you just write two different programmes and let them communicate with each other.
And in some cases it even makes sense. Say your project is written in Java or Python for the most part but you have a part that requires a little more computing power. Then you should do that with C, Fortran or whatever suits your needs.
+ 18
I read that Snapchat was built using a combination of Java and Python
+ 11
Yup, what you thinking about is interoperability. I don't know whether it could be done for c# &c++ or not. All I know is JNI(Java Native Interface) that also because I had posted same sort of question earlier.
+ 11
I use C# alongside Python. Granted, I compiled that C# from Python using Cython or PyPy for increased efficiency, but doing so sacrifices readability.
Note: Cython and/or PyPy is next to unreadable without altering the compiled (transpiled) code afterwards.
+ 11
Wow thanks for your answers guys they are quite helpful...but as a beginner i will as of now stick to one language when coding a software
+ 8
Well you actually could, if you really need it. That is possible using one language for your executable file (.exe) and another/other one(s) with the help of Dynamic-Linked libraries (.dll). But still I don't think this is really efficient or anyhow useful way of doing things
+ 8
Yes. Just yes.
+ 6
yeah , definitely u can join two languages but it important dt dey r able to communicate with each other.
swift lang. is a language which works with side by side with c
+ 5
I do know that you can use HTML with JavaScript using the line <script>enter JavaScript here</script>
+ 5
thank you guys for the feedback i researched about it.... it is possible to combine different languages to make a software .for example AIML XML and Vb.net or java or even c or c# but it is somehow complex and needs more practice
+ 4
You can't use c and c++ together as they're different programming approaches. But yes, u can definitely use two or more languages at once.
The best example is in web development, where you you would use HTML, CSS , PHP, JavaScript for the front end and MySQL for the back end.
+ 4
in current available plugins with Development tools you can use JavaScript with most of the languages to do more things
+ 3
I want to make a foreign friend.
+ 3
Yes, you can.
+ 3
well you need an multi language ide like eclipse you can do cpp , c , Java in the same project
+ 3
Quick Basic 4.5 had C declatation CDecl where u can compile low level stuff in C
+ 2
yea, id have to ask why you would want or need to do that.
+ 2
It's quite common to use it that way. There are several instances where you will be forced to write in multiple languages. For eg., I have used C# for UI and frontend, and a COM implementation in C++.
+ 2
You can make DLL file using one programming language and make the main program in some other programming language