Tests and tryouts

This commit is contained in:
pvtrx 2025-11-01 16:39:37 +01:00
parent 31e53366b1
commit 06f5866a46
3 changed files with 44 additions and 8 deletions

View File

@ -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
}

5
Start_Windows/.vscode/settings.json vendored Normal file
View File

@ -0,0 +1,5 @@
{
"files.associations": {
"ctype.h": "c"
}
}

View File

@ -1,15 +1,26 @@
#include <stdio.h> #include "input.h"
#include <stdlib.h> #include <string.h>
#include <ctype.h>
#include <windows.h>
int i = 10; int i = 10;
double d = 20.5;
int main(void) { int main(void) {
while (i < d) {
printf("i: %d, d: %.2f\n", i, d); // Read words from file and store in 'words' array
i += 2; int readWords(FILE *file, char words[][MAX_WORD_LEN], unsigned int maxWordCount)
d -= 1.5; {
while (i < 100) {
Sleep(5000);
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; return 0;