I'm just following another game dev tutorial, been a while since ive been coding so I'm probably just missing something. Here's the link to the tutorial: https://www.youtube.com/watch?v=shsmu3GX0s4
The errors both occur on line 15 of the main cpp file, with error C3867 saying that 'Game::getPlaying newboi': non-standard syntax; use '&' to create a pointer member. Error C2446 is saying '==': no conversion from 'int' to 'bool(_thiscall Game::*)(void) const'
#include <iostream>
#include "Game.h"
usingnamespace std;
int main()
{
srand(time(NULL));
Game rpg;
//this boi under me is the problem
while (rpg.getPlaying == true)
{
rpg.mainMenu();
}
return 0;
}
It's fine, I mean I really should know better at this point and its probably best I get criticism as my worst quality when it comes to this is the way I format and layout things in code and forums, I make it really sloppy and I've really gotta fix that anyways.