I'm just basically reading a book and messing around with the scripts they give me so I can understand what they're talking about, and here is the script (essencially word for word) however isn't working. What the program is supposed to do is (for example:)
"Enter two integers, and I will tell you the relationship they satisfy: 3 7
3 is not equal to 7
3 is less than 7
3 is less than or equal to 7"
Here is the code i'm messing with:
// Blarg.cpp : main project file.
#include "stdafx.h"
#include <iostream>
using namespace std;
int main()
{
int num1;
int num2;
cout << "Enter two integers, and I will tell you/n"
<< "the relationship the satisfy: ";
cin >> num1 >> num2;
if (num1 == num2)
cout << num1 << "is equal to" << num2; endl;
if (num1 != num2)
cout << num1 << "is not equal to" << num2; endl;
if (num1 < num2)
cout << num1 << "is less than" << num2; endl;
if (num1 > num2)
cout << num1 << "is Greater than" << num2; endl;
if (num1 <= num2)
cout << num1 << "is less than or equal to" << num2; endl;
if (num1 >= num2)
cout << num1 << "is greater than or equal to" << num2; endl;
return 0;
}
And here is the error message:
------ Build started: Project: Blarg, Configuration: Debug Win32 ------
Compiling...
Blarg.cpp
.\Blarg.cpp(18) : warning C4551: function call missing argument list
.\Blarg.cpp(18) : error C2568: 'identifier' : unable to resolve function overload
.\Blarg.cpp(22) : warning C4551: function call missing argument list
.\Blarg.cpp(25) : warning C4551: function call missing argument list
.\Blarg.cpp(28) : warning C4551: function call missing argument list
.\Blarg.cpp(31) : warning C4551: function call missing argument list
.\Blarg.cpp(34) : warning C4551: function call missing argument list
Build log was saved at "file://c:\Documents and Settings\Owner\My Documents\Visual Studio 2008\Projects\Blarg\Blarg\Debug\BuildLog.htm"
Blarg - 1 error(s), 6 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========