Wrong values variable definition in the zorro tutorial

Posted By: nanotir

Wrong values variable definition in the zorro tutorial - 12/15/15 13:25

Hi

In the snippet code that read balance curves.

Quote:
byte *Content = file_content("Log\\Balance.curves");
while(*Content)
{
string Name = Content;
Content += strlen(Name)+1; // skip the name
int *Size = Content;
Content += 4; // skip the size
var *Values = Content;
Content += *Size; // skip the balance array
int Num = *Size/8; // number of values
var Profit = Value[Num-1]; // end balance
printf("\n%s: %.2f",Name,Profit);
}


it should be: var Profit = Values[Num-1];
Posted By: jcl

Re: Wrong values variable definition in the zorro tutorial - 12/16/15 10:56

Thanks - that will be fixed.
© 2024 lite-C Forums