#include "Inequalities.h"
#include <iostream>
usingnamespace std;
int main()
{
// Prompt the user for input. Console output (cout) and input (cin)
double d1, d2;
cout << "Give the first number: ";
cin >> d1;
cout << "Give the second number: ";
cin >> d2;
char c; // Character type
cout << "Which function a) Max() or b) Min()? ";
cin >> c;
if (c == "a")
{
cout << "Max value is:" << Max(d1, d2) << endl;
}
else
{
cout << "Min value is: " << Min(d1, d2) << endl;
}
double dA = 1.0; double dB = 2.0; double dC = 3.0;
cout << "\ n\ nMax and min of three numbers: " << endl;
cout << "Max value is: " << Max(dA, dB, dC) << endl;
cout << "Min value is: " << Min(dA, dB, dC) << endl;
return 0;
}
When I hover over the "#include" to the left of "<iostream>" I get the following:
Error: cannot open source file "iostream"
In addition to this, when I hover over the "std;" to the right of "using namespace" I get the following:
Error: name must be a namespace name
I can't help but think that I need to enable a library somewhere because, from what I have read, iostream and namespace std are fairly standard libraries... correct?
I appreciate any and all help you can give me. If you need any additional information just ask and I will do my best to give you it.