Skip to main content
deleted 105 characters in body; edited title
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

Drink price calculator, how to add struct to array

I am also stuck on how to store structs as an array? Is this possible? Any help would be appreciated.

Drink price calculator, how to add struct to array

I am also stuck on how to store structs as an array? Is this possible? Any help would be appreciated.

Drink price calculator

added 105 characters in body; edited title
Source Link

Drink price calculator, how to add struct to array

I am also stuck on how to store structs as an array? Is this possible? Any help would be appreciated.

Drink price calculator

Drink price calculator, how to add struct to array

I am also stuck on how to store structs as an array? Is this possible? Any help would be appreciated.

Updated title to state the purpose of the code (site standard)
Source Link
Toby Speight
  • 81.9k
  • 14
  • 101
  • 309

New coder looking for feedback and improvements Drink price calculator

I have just started a course on C and wanted to test what I have learned so far. I did so by making a small program that tells you how much you should charge for a shot of a spirit you put in. The

The code will ask your if you want to do a calculation.
It It will follow up with a question about the name, price and size of a product and respond with the calculation.
I

I have just learned how to use a Struct and just worked on Arrays. My next step will be to try and implement arrays to store the Structs you made and have the option to return to previous input. How did I do so far and what could I improve on?

New coder looking for feedback and improvements

I have just started a course on C and wanted to test what I have learned so far. I did so by making a small program that tells you how much you should charge for a shot of a spirit you put in. The code will ask your if you want to do a calculation.
It will follow up with a question about the name, price and size of a product and respond with the calculation.
I have just learned how to use a Struct and just worked on Arrays. My next step will be to try and implement arrays to store the Structs you made and have the option to return to previous input. How did I do so far and what could I improve on?

Drink price calculator

I have just started a course on C and wanted to test what I have learned so far. I did so by making a small program that tells you how much you should charge for a shot of a spirit you put in.

The code will ask if you want to do a calculation. It will follow up with a question about the name, price and size of a product and respond with the calculation.

I have just learned how to use a Struct and just worked on Arrays. My next step will be to try and implement arrays to store the Structs you made and have the option to return to previous input. How did I do so far and what could I improve on?

Source Link
Loading