base_get¶
name¶
base_get, base_upper_get - convert decimimal to base<n>
synopsis¶
#include<fast_io.h>
using namespace fast_io::mnp;
base_get<n>(ref);
base_upper_get<n>(ref);
description¶
Both base_get()
and base_upper_get()
work with scan
as parameter of scan and specify the non-type-parameter, which is integer
example¶
#include<fast_io.h>
int main() {
using namespace fast_io::mnp;
int i;
println("please enter a base<8> number");
scan(base_get<8>(i));
// both lower and upper are scaned by base_get
println("base<10> ",i);
}