C++ Game Dev Math

 
I am developing a program for a class in which different levels have different types of basic arithmetic using the 4 operands, +, -, *, and /.
here is my code for the game:
This code is the main code for the game with other functions around it. However, I cannot figure out how to fine the right answer for the equations that are randomly generated. Does anyone know how I can go about using the appropriate order of operations to do this. For example: say my code randomly generates the equation y = 7 + 2 * 8. How can I tell the computer to compute the 2*8 before the 7+2 but be general enough to compute an equation like 7 / 2 * 8. See what I mean?
Thanks
C++ game devC++ game programming math

C++ Game Dev Math 1

Jun 07, 2017  Making A Game #1: Making The Game Loop: C And SDL2 Tutorial. Game programming tutorial in C using SDL to create a game from scratch! How To Start Your Game Development - Extra Credits. Mar 18, 2013  Vector Math in Games Concepts. In mathematics, a vector is a construct that represents both a direction as well as a magnitude. In game development it often can be used to describe a change in position, and can be added or subtracted to other vectors. You would usually find a vector object as part of some math or physics library. Nov 26, 2019 GameDev.net is the community for game development. Game Developers participate in forums, tutorials, blogs, projects, and more. Math and Physics Tutorials. A chapter from the book Physics for Game Developers. Physics on the Back of a Cocktail Napkin Added: 6/13/2000 Jeff Lander Uses pool to demonstrate how a solid physical foundation can actually create interesting game play, as well as providing some ideas that can be converted easily to other games such as golf or tennis. Most game companies use C, maybe with python scripts or other languages running in the background. Moreso because the bindings for OpenGL and DirectX are aimed at C (altho Im pretty sure you can do just as much Direct3d stuff in C#) but ya for game programming, C is the MAIN language. Dec 30, 2017  C Game Tutorial - Dinosaurs Game in Dev C With Source Code for Beginner to learn basics of game programming. Without using graphics and pointers How to use spacial character in C.