Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ formatting

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

cout << setfill('-') << setw(80) << "-" << '
';
// Displays 80 "-"
Source by www.cprogramming.com #
 
PREVIOUS NEXT
Tagged: #formatting
ADD COMMENT
Topic
Name
8+2 =