Is there a way to get a double with the ARGV[] function?
I've tried this, but it did not work in the way i want it to. My "solution" code is:
int MarkGenerator(double argc, double argv[])
{
if (argc > 3){
OnError("Too few arguments for mark calculator", -3);
}
else{
double MaxPoint = argv[1];
double PointsReached = argv[2];
double temp = 0;
temp = PointsReached * MaxPoint;
printf("%d\n", temp);
temp = temp * 5;
printf("%d\n", temp);
temp = temp ++;
printf("%d\n", temp);
}
}
The code works, but not in the way i want it to.
any solutions?