Skip to content
Sign upLog in
← Back to Community

C++ Stock Market

Profile icon
mamamia5x

C++ Stock Market Sim

A simple C++ Stock Market Simulator.
Play the game in full screen


Welcome to an old project I
made a long time ago, but lost
the project. Now I'm trying to revive
the old program.

You can view this on Github here!

News


Submit Idea to add a new stock. You can submit it here!

Upcoming Updates


Stock voting in the link above. Name a stock and it might be in game.
Planning on fixing the script and making if's switch statements. Also planning on adding more stocks.

Version History


Version 1.2.4

Added highest value, also added >> when entering.

Version 1.2.3

Changed the rates of stock increase, should increase more.

Version 1.2.2

Fixed the leap year bug, now leap year actually works.

Version 1.2.1

Added title screen

Version 1.2

Added third stock

Version 1.1.2

Fixed negative decrease rate, it was too high.

Version 1.1.1

Added month and year.

Version 1.1

Added second stock

Version 1.0.1

Fixed stock change to show negative decrease.

Version 1.0

Initial game release. Only one stock (named Goo), but am planning to add more.

Voters
Profile icon
JaimeNunez1
Profile icon
SniperrifleXD
Profile icon
Noory
Profile icon
TylerPark3
Profile icon
officialsneeky
Profile icon
AmandaKoffink
Profile icon
EnricoNicosia
Profile icon
Muzan-
Profile icon
AdCharity
Profile icon
mamamia5x
Comments
hotnewtop
Profile icon
StevenMatiz

I actually love this! It's so simple but mildly entertaining. I think I lost to myself though :( Anyways, I know the other guy already said this, but that switch case code would greatly help you here. Other than that, nice work!

Profile icon
mamamia5x

@StevenMatiz
Thanks, but it might take me some time to do the switch case code

Profile icon
AwesomeyFox

Really cool project, also helped me in figuring out how to clear the console as I couldn't find a working tutorial on google

Profile icon
[deleted]
  1. very ugly code
  2. use a switch case instead of 20000 if statements
  3. https://github.com/effolkronium/random instead of rand()
  4. use classes and namespaces (or soon to be modules - c++20)
  5. use an actual code_style (or codeStyle / CODE-STYLE)
  6. stop "using namespace std;" 😠
  7. stop putting spaces before (), it looks weird