std::setw(size)与 std::setfill(char)
功能:
std::setw :需要填充多少个字符,默认填充的字符为’ ‘空格
std::setfill:设置 std::setw 将填充什么样的字符,如:std::setfill(‘*‘)
头文件:
#include
#include
using namespace std;
1 |
|
std::setw(size)与 std::setfill(char)
std::setw :需要填充多少个字符,默认填充的字符为’ ‘空格
std::setfill:设置 std::setw 将填充什么样的字符,如:std::setfill(‘*‘)
头文件:
#include
#include
using namespace std;
1 |
|
近期评论