I decided to relearn some of the stuff i should already know.
I am trying to make a class, and a member function that displays a simple character.
here is the code that i have split into 3 files
the error i get is something like "Multiple definitions of info::display"
can anyone see what the error is?
Code:
class info
{
public:
void display();
// int length();
// char concatenate();
// char substring();
private:
char s;
};
Code:
#include "4dot6header.h"
void info::display()
{
}
Code:
#include<iostream>
#include "4dot6.cpp"
using namespace std;
int main()
{
info a;
a.display();
system("pause");
return 0;
}