I tried making a header file with this
#ifndef helloworld2_h
#define helloworld2_h
int bobo(int x, int d, int f)
{
return x+d+f;
}
#endif
and then I saved this and manually put it into another file to use it as a header in this.
#include <iostream>
#include "helloworld2.h"
int main()
{
std::cout << "The sum of 3 and 4 is " << std::endl;
return 0;
}
but when I compile this I'm brought to a new page that I didn't make with this code, and ond on the first line there is an error saying "expected unqualified-id before "<" token. Can anyone help me solve this so I can learn to use headers? I don't understand why this isn't compiling and would very much appreciate help please.