Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 2.21 KB

File metadata and controls

42 lines (28 loc) · 2.21 KB

Data Structures and Algorithmic code for C++ and Java.

If using this repository, do install MinGW to run c++ code on your system and install the JRE to run the java code.

Note that Linux comes installed with minGW/C++ compiler

The commands to run C++ code:

  • Move into the desired directory containing the C++ file.

  • Every operating system has a different terminal line of code to execute the C++ program:

    • For Linux systems, first compile the code with the 'g++ filename' and then execute the code using './a.out'.
    • For other operating systems, compile the code using 'g++ -o anyname filename' and then execute the code using './anyname'.

The commands to run the Java code:

  • Move into the desired directory containing the Java file.

  • Compile the Java code using 'javac filename'.

  • Run the Java code using 'java filename(without '.java' extension)'.

Here's a list of Various Data Structures and Algorithms in this repository