Does anybody know how I could get a string value from a file convert it to integer so I can do calculations and stuff, any help will be greatly appreicated
This is the code I got so far
temp_totalprice1=atoi(Stock.RetailPrice);
temp_quantitysold1=atoi(temp_quantitysold);
temp_totalprice1=temp_totalprice1*temp_quantitysol d;
On the above code it doesn't assign the value of (Stock.RetailPrice) to temp_totalprice