I have looked at similar questions for C++ programs but, even when I apply the fixes, my command window is closing after I input my value ("Enter a grade"). Using Visual Studio 2017.
#include <iostream>
int main()
{
int grade =0;
std::cout << "Enter a grade (1-100): ";
std::cin >> grade;
if (grade >= 70)
std::cout << "\nPass\n";
else
std::cout << "\nFail\n";
std::cin.get();
return 0;
}
Could this error be causing it?
Loaded 'C:\Program Files\Norton 360\NortonData\22.9.1.12\Definitions\BASHDefs\20170616.003\UMEngx86.dll'. Cannot find or open the PDB file.
I resolved all my other pdb file errors but don't know how to get rid of this one and also don't know if it's what's causing the issue. I think these errors are new since I installed Visual Studio 2015 to get rid of a debugging error; I was previously running this program just fine.