Sign inSign up

mandarvade1/cpp-sum

By mandarvade1

•Updated 3 months ago

Interactive C++ sum calculator built with GCC. Run with -it to provide keyboard input.

Image
Developer tools
0

10K+

mandarvade1/cpp-sum repository overview

⁠C++ Sum Calculator

A simple interactive C++ application packaged as a Docker image.

This image demonstrates how to compile and run a C++ program inside a Docker container using the official GCC image.

⁠Features

  • Interactive console application
  • Accepts two integers from the user
  • Calculates and displays their sum
  • Built using the official GCC Docker image

⁠Pull Image

docker pull mandarvade1/cpp-sum:v1.1

⁠Run

Since the program requires keyboard input, run the container in interactive mode.

docker run -it mandarvade1/cpp-sum:v1.1

⁠Example

welcome to c++ docker container
enter first number: 25
enter second number: 30
sum of 25 and 30 is:55

⁠Source Code

This image was created as part of my Docker learning journey.

Tag summary

Content type

Image

Digest

sha256:8e00d19ad…

Size

526.2 MB

Last updated

3 months ago

docker pull mandarvade1/cpp-sum