cool
This commit is contained in:
parent
36cd5091a1
commit
4e8af7e835
12 changed files with 79 additions and 2 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"label": "Build Current File",
|
"label": "Build Current File",
|
||||||
"command": "gcc -Wall -Wextra -g -std=c11 -O2 $ZED_FILENAME -o ./output/$ZED_STEM.exe",
|
"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",
|
||||||
//"args": [],
|
//"args": [],
|
||||||
// Env overrides for the command, will be appended to the terminal's environment from the settings.
|
// Env overrides for the command, will be appended to the terminal's environment from the settings.
|
||||||
"env": {},
|
"env": {},
|
||||||
|
|
@ -53,7 +53,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"label": "Build & Run Current File",
|
"label": "Build & Run Current File",
|
||||||
"command": "gcc $ZED_FILENAME -o ./output/$ZED_STEM.exe ; if ($?) { ./output/$ZED_STEM.exe }",
|
"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 }",
|
||||||
//"args": [],
|
//"args": [],
|
||||||
// Env overrides for the command, will be appended to the terminal's environment from the settings.
|
// Env overrides for the command, will be appended to the terminal's environment from the settings.
|
||||||
"env": {},
|
"env": {},
|
||||||
|
|
|
||||||
13
02/02_14p_1.c
Normal file
13
02/02_14p_1.c
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
#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;
|
||||||
|
}
|
||||||
8
02/02_14p_2.c
Normal file
8
02/02_14p_2.c
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int A;
|
||||||
|
printf("%d", a);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
6
02/02_14p_3.c
Normal file
6
02/02_14p_3.c
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int a, int b, int c;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
7
02/02_14p_4.c
Normal file
7
02/02_14p_4.c
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
int if;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
8
02/02_24.c
Normal file
8
02/02_24.c
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#define TMP 20
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("TMP: %d\n", TMP);
|
||||||
|
// TMP = 10;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
11
02/02_25.c
Normal file
11
02/02_25.c
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#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;
|
||||||
|
}
|
||||||
11
02/02_33p.c
Normal file
11
02/02_33p.c
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("char: %zu byte\n", sizeof(char));
|
||||||
|
printf("int: %zu bytes\n", sizeof(int));
|
||||||
|
printf("long: %zu bytes\n", sizeof(long));
|
||||||
|
printf("long long: %zu bytes\n", sizeof(long long));
|
||||||
|
printf("pointer: %zu bytes\n", sizeof(void*));
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
8
02/02_38p.c
Normal file
8
02/02_38p.c
Normal file
|
|
@ -0,0 +1,8 @@
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <math.h>
|
||||||
|
|
||||||
|
int main() {
|
||||||
|
printf("%f", sqrt(2));
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
5
init.ps1
Normal file
5
init.ps1
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
$env:Path += ';C:\mingw64\bin'
|
||||||
|
|
||||||
|
winget source update
|
||||||
|
winget install waterfox.waterfox --source winget
|
||||||
|
winget install ZedIndustries.Zed --source winget
|
||||||
Loading…
Add table
Add a link
Reference in a new issue