This is just a place where i archived my C/C++ code. And it is mostly about algorithm and data structure
Move to the directory containing the code file with cd
command.
In powershell, you could compile the code and the output file is in .exe format :
gcc -o [output_name] [code_name].c
If you need to test a testcase with tc.txt file, run the code below :
Get-Content .\tc.txt | .\[output_name].exe
In terminal, compile the code and the output file is the name of your code :
gcc -o [output_name] [code_name].c
If you need to test a testcase with tc.txt file, run the code below :
[output_name] < tc.txt
if you are using C++, change the gcc with your own g++.