I am trying to compile this simple code:
#include <iostream>
using namespace std;
#ifndef Bank_Acct_H
#define Bank_Acct_H
class Bank_Acct
{
public:
Bank_Acct( ); // initialize the state
double Check_Balance( ); // return the dollar amount of balance
void Deposit(double); // increase balance by a dollar amount
void Withdrawal(double); // decrease balance by a dollar amount
private:
double balance;
}; //end class
#endif
I have three files on a Visual Studio 2010 project window. The messege I get is:
Eerror C1083: Cannot open include file: 'Bank_Acct.h': No such file or directory
The above code is my h file. The error points to(is in) the cpp file in the #include "Bank_Acct.h" declaration. What is wrong? Yes, I named it Bank_Acct_H as in the code above.