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.
- Host: GitHub
- URL: https://github.com/heyfoz/cpp_diagonal_distance_calc
- Owner: heyfoz
- License: mit
- Created: 2022-10-28T22:24:21.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-10-28T22:44:01.000Z (over 3 years ago)
- Last Synced: 2025-03-25T04:49:21.108Z (over 1 year ago)
- Topics: cpp, distance-calculation, geometry
- Language: C++
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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