Я пытаюсь получить следующий вывод, используя setw и setfill:
OPTIONS:
<expression>
The usual operators +, -, *, / and % (remainder)
Expressions are fixed-point decimal numbers, and
Parentheses () and corchetes {} may be used for grouping.
Я пытаюсь так:
cout << "OPTIONS:" << '\n';
cout << "\t<expression>\n";
cout << '\t' << setw(3) << setfill(' ') << "The usual operators +, -, *, / and % (remainder)\n";
cout << '\t' << setw(3) << setfill(' ') << "Expressions are fixed-point decimal numbers, and\n";
cout << '\t' << setw(3) << setfill(' ') << "Parentheses () and corchetes {} may be used for grouping.\n\n";