Click here to Skip to main content
15,891,033 members

Comments by i want to code better (Top 15 by date)

i want to code better 10-Jan-23 22:57pm View    
So when I declare long=123, is it necessary to add the L at the end,sir ?
i want to code better 25-Dec-22 9:02am View    
I deleted the "order" and changed everything in case 2 to "ord" as you said, but I see no change :(
i want to code better 25-Dec-22 3:42am View    
and I try to enter the value of n in case 2, it can run but I find it inefficient because the file has different data of n, it prints the gain and loss.
i want to code better 25-Dec-22 3:40am View    
struct items{
char item[30];
int qty;
float price;
};
struct orders{
char customer[50];
char date[50];
int numOfItems;
struct items itm[50];
i want to code better 25-Dec-22 3:39am View    
First I would like to thank you for your advice to me. But the thing that I find it is not correct is that I tried your way and I see that in the case of 2 the value of n does not appear. So can you suggest me a workaround?