CSC112 Spring 2016 Examples
1#include "ns1.h" 2#include "ns2.h" 3 4int 5main() 6{ 7 ns1::f(); 8 ns2::f(); 9 10 //create an example object from both 11 ns1::Example *ex1 = new ns1::Example; 12 ns2::Example *ex2 = new ns2::Example; 13 14 //call some f functions 15 for(int i=0; i<10; i++) { 16 ex1->f(); 17 ex2->f(); 18 } 19 20 return 0; 21} 22