trying to split a function between a .cpp/.h and accessing it in main by calling that function. I keep getting the same error "identifier not found" though I can't figure out why and need some fresh eyes to look at this:
main.cpp
1 2 3 4 5 6
int main()
{
int x = 0;
passaval(x);
std::cout << "Value passed is:"<< passaval<< std::endl;
}
.cpp:
1 2 3 4 5 6
#include "passaval.h"
void passaval(int &x)
{
x = 99;
}