An open API service indexing awesome lists of open source software.

https://github.com/heyfoz/cpp_diagonal_distance_calc

The Diagonal Distance Calculator Program (C++) asks the user to enter a length, width, and height (space delimited). A function then passes the reference variables to a 2nd function, which calculates and displays the length of the longest possible diagonal distance from corner to corner of a rectangular room.
https://github.com/heyfoz/cpp_diagonal_distance_calc

cpp distance-calculation geometry

Last synced: 10 months ago
JSON representation

The Diagonal Distance Calculator Program (C++) asks the user to enter a length, width, and height (space delimited). A function then passes the reference variables to a 2nd function, which calculates and displays the length of the longest possible diagonal distance from corner to corner of a rectangular room.

Awesome Lists containing this project

README

          

# cpp_diagonal_distance_calc
The Diagonal Distance Calculator Program (C++) asks the user to enter a length, width, and height (space delimited).

A function then passes the reference variables to a 2nd function, which calculates and displays the length of the longest possible diagonal distance from corner to corner of a rectangular room.

This example also demonstrates how variable aliases can be created with reference variables.

Link the main cpp file: Diagonal Distance Calculator C++ Program

Copyright (c) 2022 ffm5113