[VS2008] Projekt złożony z 2 plików cxx

0

Witam.
Mam w projekcie 2 pliki cxx.
Pierwszy main.cxx

#include <iostream>

using namespace std;

int main(int argc, char **argv)
{
	splash();
	getchar();

	return 0;
}

I drugi splash.cxx z funkcją splash(). Jak pokazać VS plik splash.cxx, by zauważył funkcję splash()?

0
#include <iostream>

using namespace std;

void splash();
// lub extern void splash();

int main(int argc, char **argv)
{
        splash();
        getchar();

        return 0;
}

A najlepiej było by zrobić sobie nagłówek .hpp z deklaracjami funkcji.

1 użytkowników online, w tym zalogowanych: 0, gości: 1