Compare commits

..

No commits in common. "d58c7addf22cb95f3c2fff97a2b88c20162b0a87" and "36cd5091a15a75e7f40c8e7b0123f2eba9ff46dd" have entirely different histories.

12 changed files with 2 additions and 89 deletions

View file

@ -4,7 +4,7 @@
[
{
"label": "Build Current File",
"command": "$rand = -join ((97..122) | Get-Random -Count 6 | % {[char]$_}); $outputFile = \"./output/${ZED_STEM}_$rand.exe\"; gcc -Wall -Wextra -g -std=c11 -O2 $ZED_FILE -o $outputFile",
"command": "gcc -Wall -Wextra -g -std=c11 -O2 $ZED_FILENAME -o ./output/$ZED_STEM.exe",
//"args": [],
// Env overrides for the command, will be appended to the terminal's environment from the settings.
"env": {},
@ -53,7 +53,7 @@
},
{
"label": "Build & Run Current File",
"command": "$rand = -join ((97..122) | Get-Random -Count 6 | % {[char]$_}); $outputFile = \"./output/${ZED_STEM}_$rand.exe\"; gcc -Wall -Wextra -g -std=c11 -O2 $ZED_FILE -o $outputFile; if ($?) { &$outputFile }",
"command": "gcc $ZED_FILENAME -o ./output/$ZED_STEM.exe ; if ($?) { ./output/$ZED_STEM.exe }",
//"args": [],
// Env overrides for the command, will be appended to the terminal's environment from the settings.
"env": {},

View file

@ -1,13 +0,0 @@
#include <stdio.h>
int main() {
int a;
a = 10;
int b;
b = 20;
printf("a : %d\n", a);
printf("b : %d\n", b);
return 0;
}

View file

@ -1,8 +0,0 @@
#include <stdio.h>
int main() {
int A;
printf("%d", a);
return 0;
}

View file

@ -1,6 +0,0 @@
#include <stdio.h>
int main() {
int a, int b, int c;
return 0;
}

View file

@ -1,7 +0,0 @@
#include <stdio.h>
int main() {
int if;
return 0;
}

View file

@ -1,8 +0,0 @@
#include <stdio.h>
#define TMP 20
int main() {
printf("TMP: %d\n", TMP);
// TMP = 10;
return 0;
}

View file

@ -1,11 +0,0 @@
#include <stdio.h>
int main() {
int const a = 100;
const int b = 200;
printf("a: %d\n", a);
printf("b: %d\n", b);
return 0;
}

View file

@ -1,21 +0,0 @@
#include <stdio.h>
int main() {
printf("int: %zu bytes\n", sizeof(int));
printf("short: %zu bytes\n", sizeof(short));
printf("long: %zu bytes\n", sizeof(long));
printf("long long: %zu bytes\n", sizeof(long long));
printf("float: %zu bytes\n", sizeof(float));
printf("double: %zu bytes\n", sizeof(double));
printf("long double: %zu bytes\n", sizeof(long double));
printf("char: %zu bytes\n", sizeof(char));
char ch = 'A';
printf("\n%c %d", ch, ch);
ch += 32;
printf("\n%c %d", ch, ch);
return 0;
}

View file

@ -1,8 +0,0 @@
#include <stdio.h>
#include <math.h>
int main() {
printf("%f", sqrt(2));
return 0;
}

View file

@ -1,5 +0,0 @@
$env:Path += ';C:\mingw64\bin'
winget source update
winget install waterfox.waterfox --source winget
winget install ZedIndustries.Zed --source winget