How do you call a method from a header file that a .cpp file contains?
For example:
main.cpp
#include <iostream>
#include "test.h"
using namespace std;
int main() {
sayHelloWorld();
}
test.h
void sayHelloWorld();
test.cpp
#include "test.h"
void sayHelloWorld() {
printf("HELLO WORLD!\n");
}
Sorry if this seems like an easy question for some of you. :/