Answer the question
In order to leave comments, you need to log in
How to write a portable console program?
I decided to write a console program for educational purposes, which should work in both Windows and Linux.
As I understand it, different encodings are used in terminals/console.
How to correctly enter and display strings from the keyboard and on the screen?
How to properly organize file I/O using text files?
I am using Qt Opensource 5.5.1. I will recompile on the target system.
Answer the question
In order to leave comments, you need to log in
Основной момент в переносимости - не использовать на прямую функций API ОС, все только через библиотечные вызовы.
Консольную переносимую программу можно и без Qt написать - с использованием стандартной библиотеки.
С С++ обучение лучше не начинать попробуйте вот ddili.org/ders/d.en/hello_world.html
или, что еще лучше Python
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question