From 586ca30a756bfa66c121484a51efee43fbc38a40 Mon Sep 17 00:00:00 2001 From: p49a3zeks <1346664542@qq.com> Date: Thu, 16 Nov 2023 19:21:06 +0800 Subject: [PATCH] ADD file via upload --- step2.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 step2.c diff --git a/step2.c b/step2.c new file mode 100644 index 0000000..2a24fcd --- /dev/null +++ b/step2.c @@ -0,0 +1,10 @@ +void printData(Sample *data, int size) { + if (data == NULL) { + printf("Sample is empty!\n"); + return; + } + + for (int i = 0; i < size; i++) { + printf("Input 1: %f, Input 2: %f, Output: %f\n", data[i].in[0], data[i].in[1], data[i].out[0]); + } +}