initial commit
This commit is contained in:
24
include/LAB3.h
Normal file
24
include/LAB3.h
Normal file
@@ -0,0 +1,24 @@
|
||||
#ifndef LAB3_H
|
||||
#define LAB3_H
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "shared.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
double x;
|
||||
} Context;
|
||||
|
||||
typedef double (IterFn)(double, uint32_t);
|
||||
typedef double (LoopFn)(Context* ctx, uint32_t, uint32_t max, IterFn* iter_fn);
|
||||
|
||||
double iter_fn(double x, uint32_t i);
|
||||
|
||||
double for_fn(Context* ctx, uint32_t min, uint32_t max, IterFn* iter_fn);
|
||||
double while_fn(Context* ctx, uint32_t min, uint32_t max, IterFn* fiter_fn);
|
||||
double do_while_fn(Context* ctx, uint32_t min, uint32_t max, IterFn* iter_fn);
|
||||
|
||||
void lab_3();
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user