- To strengthen the basics of C, C++ & Object oriented paradigms concepts.
- Follow sequential manner to get the gist of "How to build logics"
- C Language | Link
- C++ Language with Object Oriented Concepts | Link
- DSA using Object Oriented Paradigms (OOP) & concepts | Link
- TCS NQT Sheet (Great for basic logic building) | Link
- 180 SDE Sheet | Link
- 450 Sheet | Link
- A2Z Sheet | Link
- CodeHelp YT | Link
- DSA Complete Repo | Link
-
for Windows
"code-runner.executorMap": { "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt -lm && $fileNameWithoutExt.exe && del $fileNameWithoutExt.exe", "cpp": "cd $dir && g++ $fileName -o $fileNameWithoutExt -lm && $fileNameWithoutExt.exe && del $fileNameWithoutExt.exe" },
-
for Mac/Linux
"code-runner.executorMap": { "c": "cd $dir && gcc $fileName -o $fileNameWithoutExt -lm && $dir$fileNameWithoutExt && rm $dir$fileNameWithoutExt", "cpp":"cd $dir && g++ $fileName -o $fileNameWithoutExt -lm && ./$fileNameWithoutExt && rm ./$fileNameWithoutExt", },
Note: You can customize these settings as per your own need, my personalized configuration is:
"code-runner.executorMap": { "java": "cd $dir && javac $fileName && java $fileNameWithoutExt && rm $fileNameWithoutExt.class", "c": "cd $dir && gcc-13 $fileName -o $fileNameWithoutExt -lm && $dir$fileNameWithoutExt && rm $dir$fileNameWithoutExt", "cpp":"cd $dir && g++-13 -std=c++17 $fileName -o $fileNameWithoutExt -lm && ./$fileNameWithoutExt && rm ./$fileNameWithoutExt", "python": "python3 -u", },
-
<math.h>in VsCode fixed: if math.h isn't working in your VsCode, use -lm flag in execution command to link 'math' library.gcc test.c -lm or gcc test.c -o test -lm -
Alternatively use
<cmath>header file in C++ programs then you won't need -lm flag. -
Use
<cstring>header file instead of<string.h>to use C style pre-defined string functions like:strupr(),strcpy(),strcat()etc in C++ programs. -
coutis object ofostreamclass, and<<is Insertion operator. -
cinis object ofistreamclass, and>>is Extraction operator.