This repository contains the implementation for Project 1 of "Database Systems Principles (CZ/CE4031)".
- C++ Standard Library is installed
- A C++ compiler installed
- Instructions in this guide use g++
- Any C++ compiler will work
- Refer to guide to install the required files (only if not yet installed)
Two ways to run the program
- Run the windows executable file (.exe)
- Only works for Windows 10 machine
- Compile the source code and run
- Extract files from zip file
cz4031-project-1.zip
- Enter directory
cz4031-project-1
- Double click
main.exe
to run the program
Note:
-
This method only works on Windows 10 machines
-
Make sure
main.exe
has permission to execute. You can check by:- Right-click the file (main.exe)
- Left-click properties
- Left-click the security tab
- Ensure the
Read & execute
permission is allowed.
- Extract files from the zip file
cz4031-project-1.zip
- Enter the directory
cz4031-project-1
- Launch terminal in current directory
- Compile the program
g++ main.cpp -o main
- Run the program
or
main
.//main
-
All CLI used here are for Windows machine. For other OS, modify correspondingly.
-
Ensure the executable from the compilation (main.exe) has permission to execute. You can check by:
- Right-click the file (main.exe)
- Left-click properties
- Left-click the security tab
- Ensure the
Read & execute
permission is allowed.
- Download MSYS2 installer here
- Run the installer. MSYS2 requires 64-bit Windows 7 or newer.
- Launch the program and install the required files
- Add
<Mingw-w64 destination folder>\mingw64\bin
to PATH- Using the default installation settings:
C:\msys64\mingw64\bin
- Using the default installation settings:
- Check compiler has been correctly installed added to PATH