Skip to content

Latest commit

 

History

History
172 lines (121 loc) · 3.07 KB

File metadata and controls

172 lines (121 loc) · 3.07 KB

UNIWA

UNIVERSITY OF WEST ATTICA
SCHOOL OF ENGINEERING
DEPARTMENT OF COMPUTER ENGINEERING AND INFORMATICS

University of West Attica · Department of Computer Engineering and Informatics


Computer Programming

Control Structures

Vasileios Evangelos Athanasiou
Student ID: 19390005

GitHub · LinkedIn


Supervision

Supervisor: Nikolaos Vassilas, Professor

UNIWA Profile

Co-supervisor: Georgios Meletiou, Laboratory Teaching Staff

UNIWA Profile


Athens, November 2021



INSTALL

Control Structures

This guide explains how to set up, build, and run the project on your local machine.


1. Prerequisites

1.1 Required Software

  • C Compiler

    • Recommended:
      • GCC (Linux / macOS / Windows via MinGW or WSL)
  • Text Editor or IDE

    • Visual Studio Code (Recommended)
    • Code::Blocks
    • Dev-C++
    • CLion
    • Any plain text editor

1.2 Supported Operating Systems

  • Windows
  • Linux (Recommended)
  • macOS

2. Installation

2.1 Clone the Repository

Clone the repository to your local machine:

git clone https://github.com/Computer-Programming-aka-Uniwa/Control.git

2.2 Alternative (Without Git)

  • Open the repository URL in your browser
  • Click Code → Download ZIP
  • Extract the ZIP file to a local directory

3. Compiling & Running the Programs

3.1 Navigate to Source Directory

cd Control/src

3.2 Compile the Programs

gcc if.c -o if
gcc if1.c -o if1
gcc switch.c -o switch
gcc MaxInteger.c -o MaxInteger
gcc 2ndGradeEquation.c -o 2ndGradeEquation -lm

-lm is required to link the math library

3.3 Run the Programs

Linux / macOS

./if
./if1
./switch
./MaxInteger
./2ndGradeEquation

Windows

if.exe
if1.exe
switch.exe
MaxInteger.exe
2ndGradeEquation.exe

4. Open the Documentation

  1. Navigate to the docs/ directory
  2. Open the report corresponding to your preferred language:
    • English: Control-Structures.pdf
    • Greek: Δομές-Ελέγχου.pdf