+ 2

Where does python and C++ relate in desktop apps.

2nd Dec 2016, 4:05 AM
David Kariuki
David Kariuki - avatar
5 Respuestas
+ 4
C++ relies Python on Scripts and Plugins. In a real programming tool, you can link a Python project with a C++ project to 'combine' both together to form a application. (Just like how you can like CSS and HTML together)
2nd Dec 2016, 4:44 AM
Wen Qin
Wen Qin - avatar
+ 4
There are a lot of them and as far as I know, their code is quite decently long. Go and google it to find those. And if I am not wrong, to attach a python to C++ file, this is the code : #include <Python.h> int main(int argc, char *argv[]) { Py_SetProgramName(argv[0]); Py_Initialize(); /*code here*/ Py_Finalize(); return 0; }
2nd Dec 2016, 4:56 AM
Wen Qin
Wen Qin - avatar
+ 3
@k2 do you mind giving an example of a python script and its use in a desktop app. What will it add to C++ that will make me start learning python script today
2nd Dec 2016, 4:51 AM
David Kariuki
David Kariuki - avatar
+ 2
Thanks alot
2nd Dec 2016, 4:59 AM
David Kariuki
David Kariuki - avatar
0
Could you be more specific
2nd Dec 2016, 4:18 AM
Nedim Kanat
Nedim Kanat - avatar