std::div_t
描述
结构类型,std::div
函数的返回值
声明
struct div_t { int quot; int rem; };
或
struct div_t { int rem; int quot; };
示例
#include <float.h>
#include <math.h>
#include <stdio.h>
int main(void)
{
printf("%d\n", FLT_EVAL_METHOD);
printf("%zu %zu\n", sizeof(float),sizeof(float_t));
printf("%zu %zu\n", sizeof(double),sizeof(double_t));
return 0;
}
可能结果
0
4 4
8 8