(C++) std::noshowpos
February 24, 2017 · View on GitHub
(C++) std::noshowpos
std::noshowpos is a stream modifier to not prepend positive values by a plus.
#include <iostream> int main() { const int i = 1; std::cout << std::showpos << i << '\n' << std::noshowpos << i << '\n'; }
Screen output:
+1 1