From 06f5866a464196b00567dd61671765b4ee557ed2 Mon Sep 17 00:00:00 2001 From: pvtrx Date: Sat, 1 Nov 2025 16:39:37 +0100 Subject: [PATCH] Tests and tryouts --- Start_Windows/.vscode/c_cpp_properties.json | 20 +++++++++++++++ Start_Windows/.vscode/settings.json | 5 ++++ Start_Windows/Test123.c | 27 +++++++++++++++------ 3 files changed, 44 insertions(+), 8 deletions(-) create mode 100644 Start_Windows/.vscode/c_cpp_properties.json create mode 100644 Start_Windows/.vscode/settings.json diff --git a/Start_Windows/.vscode/c_cpp_properties.json b/Start_Windows/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..6edc8ba --- /dev/null +++ b/Start_Windows/.vscode/c_cpp_properties.json @@ -0,0 +1,20 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "${workspaceFolder}/**", + "${workspaceFolder}" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "_UNICODE" + ], + "cStandard": "c17", + "cppStandard": "gnu++17", + "intelliSenseMode": "windows-gcc-x64" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/Start_Windows/.vscode/settings.json b/Start_Windows/.vscode/settings.json new file mode 100644 index 0000000..d4a224b --- /dev/null +++ b/Start_Windows/.vscode/settings.json @@ -0,0 +1,5 @@ +{ + "files.associations": { + "ctype.h": "c" + } +} \ No newline at end of file diff --git a/Start_Windows/Test123.c b/Start_Windows/Test123.c index 030517f..bd54964 100644 --- a/Start_Windows/Test123.c +++ b/Start_Windows/Test123.c @@ -1,15 +1,26 @@ -#include -#include +#include "input.h" +#include +#include +#include int i = 10; -double d = 20.5; + +int main(void) { + +// Read words from file and store in 'words' array +int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount) +{ + + while (i < 100) { + Sleep(5000); -int main(void) { -while (i < d) { - printf("i: %d, d: %.2f\n", i, d); - i += 2; - d -= 1.5; + + i++; + } + + + //TODO: Implement function to read words from file words.txt and store them in the words array. See, that in the file words are not seperated only by , ; or space but also by new lines. } return 0;