Me and partner are working in a project together and the online compiler we are using is stumping us. We have two files that make up the project
Koffiebord.h The error we are getting is in the first file.
koffiebord.h:7:6: error: redefinition of ‘char leesOptie()’
7 | char leesOptie() {
| ^~~~~~~~~
In file included from koffiebord.cc:4:
koffiebord.h:7:6: note: ‘char leesOptie()’ previously defined here
7 | char leesOptie() {
| ^~~~~~~~~
In file included from koffiebord.cc:47:
koffiebord.h:15:5: error: redefinition of ‘int leesGetal(int)’
15 | int leesGetal(int maxi) {
| ^~~~~~~~~
In file included from koffiebord.cc:4:
//headerfile met classes + leesgetal
#include <iostream>
#include <cstdlib>
using namespace std;
char leesOptie() {
a function to read choices
} //leesOptie
int leesGetal(int maxi) {
a function to read numbers
} //leesGetal
class vakje {
not importan
};//bordvakje
class koffiebord {
not important
};//koffiebord
the second files important bits (It is called koffiebord.cc)
#include <iostream>
#include <cstdlib>
#include <ctime>
#include "koffiebord.h"
using namespace std;
if you can help that would be much appreciated