[C++] Help with C++ work.
Alright, I am doing a work and I keep getting the error, that it cannot find the 'header8.h'!??!?!
What am I doing wrong?
This is what's inside my "header8.h"
NEVER MIND, I FIXED it. . .-_- I was putting header file with <>
Close this or erase it
Code:
#ifndef NewPerson_CPP
#define NewPerson_CPP
{
private:
int Age;
string Name;
public:
NewPerson(int, string);
void display();
};
NewPerson::NewPerson(int ID, string lastname)
{
Age = ID;
name = lastname;
}
{
void NewPerson::display()
{
cout << " NewPerson age is: " << Age << endl;
}
#endif
And this is inside my NewPerson.cpp
Code:
#include <iostream>
#include <Header8.h>
int main()
{
NewPerson NewBorn;
}
What am I doing wrong?