The following code runs nicely, however after running the program i receive the error: 'ConsoleApplication55.exe' (Win32): Loaded 'C:\Windows\SysWOW64\ntdll.dll'. Cannot find or open the PDB file.
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int feet, inches;
double cm;
bool goodData = false;
while (!goodData)
{
try
{
cout << "PLease enter a positive length in feet: ";
if (!(cin >> feet))
throw 1;
else if (feet<0)
throw 2;
else
goodData = true;
}
catch (int n)
{
if (n == 1)
{
cout << "non number entered\n";
cin.clear();
cin.ignore(80, '\n');
}
else
cout << "Please enter a positive integer!\n";
}
}
goodData = false;
while (!goodData)
{
try
{
cout << "PLease enter a positive length in inches: ";
if (!(cin >> inches))
throw 1;
else if (inches<0)
throw 2;
else
goodData = true;
}
catch (int n)
{
if (n == 1)
{
cout << "non number entered\n";
cin.clear();
cin.ignore(80, '\n');
}
else
cout << "Please enter a positive integer!\n";
That's not an error, it's just letting you know it can't find the debug symbols for a system library. You don't need them and it has nothing to do with your code.