Answers for ".format C++"

C++
0

format string cpp

#include <iostream>
#include <format>
 
int main() {
    std::cout << std::format("Hello {}!n", "world");
}
Posted by: Guest on February-02-2021
0

c++ formatting

cout << setw(10) << "ten" << "four" << "four" << 'n';
// Display ten       fourfour

cout << setfill('-') << setw(80) << "-" << 'n';
// Displays 80 "-"
Posted by: Guest on March-09-2020

Browse Popular Code Answers by Language