diff --git a/.gitignore b/.gitignore index e257658..de14e03 100644 --- a/.gitignore +++ b/.gitignore @@ -32,3 +32,5 @@ *.out *.app +**/*.exe +**/gmon.out \ No newline at end of file diff --git a/.vscode/c_cpp_properties.json b/.vscode/c_cpp_properties.json new file mode 100644 index 0000000..efde969 --- /dev/null +++ b/.vscode/c_cpp_properties.json @@ -0,0 +1,40 @@ +{ + "configurations": [ + { + "name": "Win32", + "includePath": [ + "${workspaceRoot}", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/x86_64-w64-mingw32", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/backward", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/tr1", + "D:/mingw64/x86_64-w64-mingw32/include" + ], + "defines": [ + "_DEBUG", + "UNICODE", + "__GNUC__=6", + "__cdecl=__attribute__((__cdecl__))" + ], + "intelliSenseMode": "gcc-x64", + "browse": { + "path": [ + "${workspaceRoot}", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/x86_64-w64-mingw32", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/backward", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include", + "D:/mingw64/lib/gcc/x86_64-w64-mingw32/12.2.0/include/c++/tr1", + "D:/mingw64/x86_64-w64-mingw32/include" + ] + }, + "limitSymbolsToIncludedHeaders": true, + "databaseFilename": "", + "compilerPath": "D:/mingw64/bin/gcc.exe", + "cStandard": "c11", + "cppStandard": "c++11" + } + ], + "version": 4 +} \ No newline at end of file diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..abe19ec --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,19 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "C++ Launch (GDB)", + "type": "cppdbg", + "request": "launch", + "targetArchitecture": "x86", + "program": "${workspaceRoot}\\${fileBasename}.exe", + "miDebuggerPath":"D:\\mingw64\\bin\\gdb.exe", + "args": [], + "stopAtEntry": false, + "cwd": "${workspaceRoot}", + "externalConsole": true, + "preLaunchTask": "g++" + } + ] + } + \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..6275f20 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,7 @@ +{ + "files.associations": { + "*.js": "javascript", + "iostream": "cpp" + }, + "C_Cpp.errorSquiggles": "disabled" +} \ No newline at end of file diff --git a/.vscode/tasks.json b/.vscode/tasks.json new file mode 100644 index 0000000..acfbd8c --- /dev/null +++ b/.vscode/tasks.json @@ -0,0 +1,17 @@ +{ + "version": "2.0.0", + "command": "g++", + "args": ["-g","-std=c++11","${file}","-o","${workspaceRoot}\\${fileBasename}.exe"], + "problemMatcher": { + "owner": "cpp", + "fileLocation": ["relative", "${workspaceRoot}"], + "pattern": { + "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$", + "file": 1, + "line": 2, + "column": 3, + "severity": 4, + "message": 5 + } + } +} diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1ff4737 --- /dev/null +++ b/Makefile @@ -0,0 +1,9 @@ +clearclass: + # rm -rf */*/*/*.class + # rm -rf */*/*.class + # rm -rf */*.class + # rm -rf *.class + + + rm -rf */*.exe + rm -rf */*.out