I’m following along the course Unreal Engine C++ Developer: Learn C++ and Make Video Games and I got to a point where I’m stuck. I’ve tried looking through stack overflow to see what the issue is but couldn’t find a solution.
This is the part I’m up to
#include <iostream>
int main()
{
std::cout << "You are a secret agent breaking into a secure server room...";
std::cout << std::endl;
std::cout << "Enter the correct code to continue..." << std::endl;
const int CodeA = 4;
const int CodeB = 5;
const int CodeC = 6;
const int CodeSum = CodeA+CodeB+CodeC;
const int CodeProduct = CodeA*CodeB*CodeC;
std::cout << std::endl;
std::cout << "+ There are 3 numbers in the code" << std::endl;
std::cout << "+ The code adds up to: " << CodeSum << std::endl;
std::cout << "+ The codes multiply to give: " << CodeProduct << std::endl;
int PlayerGuess;
std::cin >> PlayerGuess;
std::cout << "Your guess was: " << PlayerGuess;
return 0;
}
and this is what the terminal outputs