Skip to content

[FEATURE] enhance input display by sorting inputs before output#35

Merged
SamGave07 merged 5 commits intomainfrom
dev
Mar 9, 2025
Merged

[FEATURE] enhance input display by sorting inputs before output#35
SamGave07 merged 5 commits intomainfrom
dev

Conversation

@maelemiel
Copy link
Contributor

This pull request includes changes to the Circuit class to improve the organization and display of input components. The most important changes include adding new headers, sorting input components before displaying them, and updating the display logic.

Improvements to header organization:

  • include/Circuit.hpp: Added #include <map> to support the use of std::map for sorting inputs.
  • src/Circuit.cpp: Added #include <algorithm> to support potential future use of algorithms.

Enhancements to input display:

  • src/Circuit.cpp: Modified the displayInputs method to sort input components using a std::map and display them in order. This change ensures that inputs are displayed in a consistent and organized manner.

@maelemiel maelemiel requested a review from SamGave07 March 9, 2025 17:44
@maelemiel maelemiel self-assigned this Mar 9, 2025
Copy link
Collaborator

@SamGave07 SamGave07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good enhancement of the code

@SamGave07 SamGave07 merged commit 5bc3ec8 into main Mar 9, 2025
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants