I am just not seeing this error kinda need an extra pair of eyes please (C++)
trail.cpp
Code:
#include <cmath> Code:
#include <cmath> Code:
find.cpp: In function ‘void find(double, double)’: |
In C/C++ there's no modulo operator defined for floating point values, but you have the option to use functions like fmod.
|
so change doubles to int's and now that I think I really don't need to mod the pow*pow(10, num).
so it should work with Code:
ans=num%divider ( changing nec variables) |
For your basic experiments you'll just be fine with integers. It won't hurt though to also read up on the floating point data types as well. They certainly take a special place and require different handling than integers.
|
All times are GMT -5. The time now is 07:43 AM. |