Tests and tryouts
This commit is contained in:
parent
31e53366b1
commit
06f5866a46
20
Start_Windows/.vscode/c_cpp_properties.json
vendored
Normal file
20
Start_Windows/.vscode/c_cpp_properties.json
vendored
Normal 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
5
Start_Windows/.vscode/settings.json
vendored
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
{
|
||||||
|
"files.associations": {
|
||||||
|
"ctype.h": "c"
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -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;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user