c++ game problom

my code is not working im using visual studio 2017,i tryed romoveing #include "stdafx.h" it solves the probloms but it asks to put it back in

the code:

#include <iostream>
#include <string>
#include "stdafx.h"


int main()
{
// introduse game
constexpr int WORD_LENGTH = 5;

std::cout << "wellcome to Bulls and Cows ^-^\n";
std::cout << "can you guess the " << WORD_LENGTH;
std::cout << " letter isogram im thinking of?\n";

// get a guess from the player
std::cout << "Enter your guess: ";
std::string guess = "";
std::getline(std::cin, guess);


//repeat the guess back to them

return 0;

}
turn off precompiled headers in the project and it will stop asking for it I think.
could you elaborate on the problem, and explain what happens when you run the program having excluded stdafx.h?
Topic archived. No new replies allowed.