--- /dev/null
+#include <iostream>\r
+\r
+using std::cout;\r
+using std::endl;\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* Declaration *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Public *|\r
+ \*-------------------------------------*/\r
+\r
+void useNameSpaceProcedure();\r
+\r
+/*--------------------------------------*\\r
+ |* Private *|\r
+ \*-------------------------------------*/\r
+\r
+namespace v1\r
+ {\r
+ static int V = 1;\r
+\r
+ static float value();\r
+ }\r
+\r
+namespace v2\r
+ {\r
+ static int V = 2;\r
+\r
+ static float value();\r
+ }\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* Implementation *|\r
+ \*---------------------------------------------------------------------*/\r
+\r
+/*--------------------------------------*\\r
+ |* Public *|\r
+ \*-------------------------------------*/\r
+\r
+void useNameSpaceProcedure()\r
+ {\r
+ cout << endl<<"[Using Namespaces with procedures] :" << endl<<endl;\r
+ float v1 = v1::value();\r
+ float v2 = v2::value();\r
+\r
+ cout << "value of v1 = " << v1 << " V = " << v1::V << endl;\r
+ cout << "value of v2 = " << v2 << " V = " << v2::V << endl;\r
+ }\r
+\r
+/*--------------------------------------*\\r
+ |* Private *|\r
+ \*-------------------------------------*/\r
+\r
+/**\r
+ * v1 est le name space\r
+ */\r
+float v1::value()\r
+ {\r
+ return 1.0f;\r
+ }\r
+\r
+/**\r
+ * v2 est le name space\r
+ */\r
+float v2::value()\r
+ {\r
+ return 2.0f;\r
+ }\r
+\r
+/*----------------------------------------------------------------------*\\r
+ |* End *|\r
+ \*---------------------------------------------------------------------*/\r
+\r