This repository has been archived on 2026-05-11. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
prog-104-p-03-2030/functional_market/Fundamentals/crepe_stream.h
T
2026-04-09 15:08:25 +02:00

43 lines
609 B
C

#ifndef CREPE_STREAM_H
#define CREPE_STREAM_H
#include "toolbox.h"
enum dough
{
WHEAT,
BUCKWHEAT,
};
enum topping
{
NOTHING,
// Sweet
SUGAR,
CHOCOLATE,
WHIPPED_CREAM,
// Savory
CHEESE,
MEAT,
EGG,
};
struct crepe
{
char *name;
enum dough dough;
enum topping inside;
enum topping outside;
int price;
};
struct array *sort_by_prices(struct array *arr);
struct array *names(struct array *arr);
struct array *vegetarian(struct array *arr);
int total_price(struct array *arr);
void print_menu(struct array *arr);
#endif /* ! CREPE_STREAM_H */