Skip to content

Commit

Permalink
perf: use config dev c++ base
Browse files Browse the repository at this point in the history
  • Loading branch information
Faelayis committed Sep 26, 2023
1 parent f2c2186 commit 4c64672
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 7 deletions.
10 changes: 6 additions & 4 deletions COM-1308/.vscode/c_cpp_properties.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
{
"configurations": [
{
"cStandard": "${default}",
"cStandard": "c99",
"compilerPath": "C:/Program Files (x86)/Dev-Cpp/MinGW64/bin/gcc.exe",
"cppStandard": "${default}",
"cppStandard": "gnu++11",
"compilerArgs": ["-std=c11", "-std=gun11"],
"includePath": ["${default}", "C:/Program Files (x86)/Dev-Cpp/MinGW64/**"],
"intelliSenseMode": "windows-gcc-x64",
"name": "Windows"
},
{
"cStandard": "${default}",
"cStandard": "c99",
"compilerPath": "/usr/bin/gcc",
"cppStandard": "${default}",
"cppStandard": "gnu++11",
"compilerArgs": ["-std=c11", "-std=gun11"],
"includePath": ["${default}"],
"intelliSenseMode": "linux-gcc-x64",
"name": "Linux"
Expand Down
4 changes: 3 additions & 1 deletion COM-1308/19-09-66/homework/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,9 @@ int main()
clearScreen();

printf("Area Calculation Menu:\n");
for (int i = 0; i < menu.length; i++)

int i = 0;
for (i; i < menu.length; i++)
{
printf("%d. %s\n", i + 1, menus[i].item);
}
Expand Down
5 changes: 4 additions & 1 deletion COM-1308/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,11 @@
"configurations": [
{
"name": "windows-gcc-x64",
"cStandard": "c99",
"cppStandard": "gnu++11",
"includePath": ["${default}", "C:/Program Files (x86)/Dev-Cpp/MinGW64/**"],
"compilerPath": "C:/Program Files (x86)/Dev-Cpp/MinGW64/bin/gcc.exe"
"compilerPath": "C:/Program Files (x86)/Dev-Cpp/MinGW64/bin/gcc.exe",
"compilerArgs": ["-std=c11", "-std=gun11"],
}
],
"version": 4
Expand Down
5 changes: 4 additions & 1 deletion COM-1308/README_LINUX.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,11 @@
"configurations": [
{
"name": "linux-gcc-x64",
"cStandard": "c99",
"cppStandard": "gnu++11",
"includePath": ["${default}"],
"compilerPath": "/usr/bin/gcc"
"compilerPath": "/usr/bin/gcc",
"compilerArgs": ["-std=c11", "-std=gun11"],
}
],
"version": 4
Expand Down

0 comments on commit 4c64672

Please sign in to comment.