Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

left margin c++

// modify adjustfield using manipulators
#include <iostream>     // std::cout, std::internal, std::left, std::right

int main () {
  int n = -77;
  std::cout.width(6); std::cout << std::internal << n << '
';
  std::cout.width(6); std::cout << std::left << n << '
';
  std::cout.width(6); std::cout << std::right << n << '
';
  return 0;
}
Source by www.cplusplus.com #
 
PREVIOUS NEXT
Tagged: #left #margin
ADD COMMENT
Topic
Name
6+3 =