Hey, I wrote this program with the help of a few people. I build the program and I get 3 warnings and no errors. All of the read "warning C4305: 'argument' truncation from double to float. When I run the program and the black screen thing pops up, it shows nothing, just the blinking white thing at the top. I'm thinking it may be my computer and not the program but at the same time it works for everything else just not this one. So I'm thinking it may be the program or it is the computer that I'm using. Can anyone help me out, perhaps tell me if there is something wrong with my program that is causing it to just sit there without outputting anything. Thanks for the help.
Salesrecord.h
class SalesRecord
{
private:
float *sales_amount;
int number_of_sales;
From what i see from your error, somewhere in the code you're converting a double to a float, which will knock off some decimal places and make the value less accurate. its commonly better to just use the same type so the compiler does no need to modify and change types when compiling in situations.
Sorry I'm quite new at this. I'll keep that in mind when I do this again. Would this cause the program to do nothing? Like its just a black screen with like a white line blinking on and off. I've never had that happen to me before now but I'm not sure if it is my program or not.