Лучшие практики для интернационализации / локализации с lit-element / lit-html

Взгляните на манипуляторы потока , особенно std::setw и std::setfill.

float f = 3.1415926535;
std::cout << std::setprecision(5)   // precision of floating point output
          << std::setfill(' ')      // character used to fill the column
          << std::setw(20)          // width of column
          << f << '\n';             // your number

1
задан Guillaume Lastecoueres 30 March 2019 в 23:56
поделиться