How do we write codes in c++ to work on cross platform | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 2

How do we write codes in c++ to work on cross platform

Help needed

20th Feb 2019, 6:55 AM
Marcellinus Acquaye
Marcellinus Acquaye - avatar
3 Respostas
20th Feb 2019, 6:57 AM
Sudarshan Rai
Sudarshan Rai - avatar
+ 1
If you code follows the c++ standard (c++17 being the most recent) then you should be able to compile it for any (almost) system. If you use platform dependant system calls or compiler specific features that it will be hard to compile for another platform.
20th Feb 2019, 8:46 AM
Jared Bird
Jared Bird - avatar
- 1
c
27th Feb 2019, 3:11 AM
Jeevan Jeevan
Jeevan Jeevan - avatar