Back to notes -- Keyboard shortcut: 'u'              Slide program -- Keyboard shortcut: 't'    Illustrating that a namespace interface is separated from the namespace implementation.Lecture 2 - slide 38 : 42
Program 1
// First we see a namespace interface followed
// by definition/implementation of the functions
// in the namespace.

namespace N{          // The namespace interface
  int f(int i);
  double g();
}

int N::f(int i){      // The namespace implementation
  return 2*i;
}

double N::g(){
  return f(2);
}


int main(){
  using N::f; 

  int r = f(5);
  double d = N::g();
}