And the basic idea works...
This commit is contained in:
@ -1,7 +1,17 @@
|
||||
#include "lib.h"
|
||||
|
||||
namespace lib
|
||||
{
|
||||
void func2();
|
||||
}
|
||||
|
||||
int
|
||||
lib::func()
|
||||
{
|
||||
return 42;
|
||||
}
|
||||
|
||||
void
|
||||
lib::func2()
|
||||
{
|
||||
}
|
||||
|
@ -1,4 +1,6 @@
|
||||
namespace lib
|
||||
{
|
||||
int func();
|
||||
|
||||
void func2();
|
||||
}
|
||||
|
@ -1,9 +1,11 @@
|
||||
#include <iostream>
|
||||
|
||||
#include "lib.h"
|
||||
|
||||
int
|
||||
main()
|
||||
{
|
||||
lib::func();
|
||||
std::cout << lib::func() << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user