UE4 example projects could not find code error

When i opened the c++ files it gives this error

All i did was Generate Visual Studio Project Files and it worked