namespace std {
struct div_t {
int quot;
int rem;
};
}
概要
std::div()
関数の戻り値。
quot
は「quotient (商)」、rem
は「remainder (剰余)」。
例
出力
2
1
namespace std {
struct div_t {
int quot;
int rem;
};
}
std::div()
関数の戻り値。
quot
は「quotient (商)」、rem
は「remainder (剰余)」。
2
1