all format specifiers in c++ code example
Example 1: what is the format specifier for dword c++
On a 32 bit compiler, the format specifier which you can use to print the value of DWORD is %lu . You can also use %ld if you want to print the value in decimal format.
Example 2: c++ formatting
cout << setw(10) << "ten" << "four" << "four" << '\n';
// Display ten fourfour
cout << setfill('-') << setw(80) << "-" << '\n';
// Displays 80 "-"