first project:
#include <iostream>
int number(int x, int y);
int main()
{
std::cout << "the sum of 5 and 6 is " << number(5, 6) << std::endl;
return 0;
}
second project:
int number(int x, int y)
{
return x + y;
}
Last edited on
You can't have the code in separate projects. Instead, have the code in the same project but in two different source files.