placing void() in a 2nd source file
HI,
im trying to create a program that contains a void() function which is in a second source file.
Its supposed to look like this:
File 1:
1 2 3 4 5
|
...
int main()
{
test1();
}
|
File 2:
1 2 3 4
|
void test1()
{
cout << "Hello World" << endl;
}
|
My question is how to I do that? And where do I put the #include files?
Thanks in advance ! :)
Topic archived. No new replies allowed.