diff --git a/svg.cpp b/svg.cpp index 21b6928..c71577e 100644 --- a/svg.cpp +++ b/svg.cpp @@ -2,9 +2,10 @@ #include #include "svg.h" -void InCol (){ - std::string color; - std::cin >> color; +std::string InCol (){ + std::string color1; + std::cin >> color1; + return color1; } void svg_begin(double width, double height) @@ -44,7 +45,7 @@ void show_histogram_svg(const std::vector& bins) const auto BLOCK_WIDTH = 10; std::string color; - InCol(); + color = InCol(); const std::size_t MAX_ASTERISK = IMAGE_WIDTH - TEXT_WIDTH; svg_begin(IMAGE_WIDTH, IMAGE_HEIGHT);