Skip to content

riccio8/examples-of-program-in-cpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ program

This repository contains various C++ programs that utilize external libraries such as boost/asio, windows.h, etc.

Installation

Linux

Using the installation script

To install dependencies and set up the development environment on Linux, navigate in the correct path (#!\bin) and run the provided installation script:

cd #!\bin\
bash install.sh

This will install the C++ compiler, essential development tools, CMake (optional), Git (optional), Boost libraries, and, if desired, Visual Studio Code. Using CMake

If you prefer using CMake to build the project:

mkdir build
cd build
cmake ..
make

Windows

To clone and compile the project on Windows using git, follow these steps:

Install git.

Clone the repository:

git clone https://github.com/riccio8/examples-of-program-in-c-

Open the project in your preferred IDE or use the command prompt.

Configure and build the project using your preferred C++ compiler and download the boost asio library from here:

https://www.boost.org/doc/libs/1_84_0/doc/html/boost_asio.html

or from here:

https://think-async.com/Asio/Download.html

Docker

In this repository, a Docker container has been set up to run the script block.cpp. The Docker container is configured using a Dockerfile named block.dockerfile. Instructions

Building the Docker Image:

docker build -t cpp-windows-container -f block.dockerfile .

Running the Docker Container:

docker run --rm cpp-windows-container

Notes

The Dockerfile sets up the environment to compile and execute block.cpp on a Windows-based Docker 
container so YOUR OS MUST BE WINDOWS if you want to run docker with this engine.

Ensure that Docker is installed and running on your system before following the above steps.
Replace cpp-windows-container with your preferred image name if desired.

Instead if u want to run the notepad exe on linux-based OS you must use the docker-engine file that I gave in the notepad directory As for the other program, ensure that you are on the right directory and than build and run the docker container: build:

docker build -t notepad-container -f notepad.dockerfile.

run

docker run --rm -it notepad-container

I NEED TO TEST THIS TYPE OF INSTALLATION

Usage

After compiling the project, run the generated executable.

Contributions

If you find bugs or have suggestions to improve the project, feel free to submit a pull request or open an issue.

License

https://github.com/riccio8/examples-of-program-in-c-

IMPORTANT!

You have to include file header, precompiled library, executable, dynamic and static library and so on when you download the file, because all this files are exclude in the .gitignore file

About

examples in c++

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •