Convert bigflt.c to C++