How to write portable code in c++?

后端 未结 12 1991
情话喂你
情话喂你 2020-11-30 03:47

What are the things that I should keep in mind to write portable code? Since I\'m a c++ beginner, I want to practice it since beginning.

Thanks.

12条回答
  •  -上瘾入骨i
    2020-11-30 04:34

    Write command-line programs to begin with. When you're ready, find a cross-platform windowing toolkit such as Qt.

    If you're interested in writing multilingual code, use a third-party unicode library such as ICU rather than relying on platform-specific libraries.

提交回复
热议问题