Get the App
SLTechnology News&Howtos  ›  Development  › 

What are the application skills of C++ standard input and output

Shulou Source: shulou.com Published: 2022-06-02 09:43:24 10月04日 Update

This article introduces the relevant knowledge of "what are the application skills of C++ standard input and output". In the operation of actual cases, many people will encounter such a dilemma. Next, let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!

◆ 1, the base of number

Default base:

By default, data is input and output in decimal system. If octal or hexadecimal input and output is required, the corresponding data form must be specified in cin or cout. Oct is octal, hex is hexadecimal, and dec is decimal.

For example:

Int I, j, k, l; couti; / / input is octal number cin > > hex > > j; / / input is hexadecimal number cin > > k; / / input is still hexadecimal number cin > > dec > > l; / / input is decimal number cout

Tags: Output input data width clocked hexadecimal application skills techniques standards applications octal decimal actual data items decimal content variables methods results binary Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei Linux macOS NVidia Shulou Information