Coder Social home page Coder Social logo

examples-of-program-in-cpp's Introduction

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

examples-of-program-in-cpp's People

Contributors

riccio8 avatar nico520yt avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.