Stock Market Simulator main e8c3612
A game that provides a realistic stock buying experience with unpredictable trends to test investment strategies.
Loading...
Searching...
No Matches
graph.h
Go to the documentation of this file.
1/// @file graph.h
2/// @brief Declaration of graph plotting function.
3/*
4This program is free software: you can redistribute it and/or modify it under the
5terms of the GNU Lesser General Public License as published by the Free Software
6Foundation, either version 3 of the License, or (at your option) any later version.
7
8This program is distributed in the hope that it will be useful, but WITHOUT ANY
9WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
10PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
11
12You should have received a copy of the GNU Lesser General Public License along with this
13program. If not, see <https://www.gnu.org/licenses/>.
14*/
15
16#ifndef GRAPH_H
17#define GRAPH_H
18#include <string>
19#include <vector>
20
21/** @brief Plot the graph of the stock price history to std::cout.
22 * @param player the name of the player
23 * @param stocknum the stock number of the stock, -1 for HSI
24 * @param width the width of the graph
25 * @param height the height of the graph
26 */
27void graph_plotting(const std::string & player, int stocknum, int width, int height);
28
29#endif
void graph_plotting(const std::string &player, int stocknum, int width, int height)
Plot the graph of the stock price history to std::cout.
Definition graph.cpp:135