Skip to content

Commit

Permalink
ex18.12.13.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Queequeg92 committed Nov 20, 2014
1 parent 0c0cd41 commit 1c135d4
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions ch18/ex18.12.13.14/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/***************************************************************************
* @file main.cpp
* @author Queequeg
* @date 20 Nov 2014
* @remark This code is for the exercises from C++ Primer 5th Edition
* @note
***************************************************************************/
//!
//! Exercise 18.12
//! Organize the programs you have written to answer the questions in each
//! chapter into their own namespaces. That is, namespace chapter15 would
//! contain code for the Query programs and chapter10 would contain the
//! TextQuery code. Using this structure, compile the Query code examples.

//! Exercise 18.13
//! When might you see use an unnamed namespace?
//! http://stackoverflow.com/questions/154469/unnamed-anonymous-namespaces-vs-static-functions
//! http://stackoverflow.com/questions/5312213/uses-of-unnamed-namespace-in-c

//! Exercise 18.14
//! Suppose we have the following declaration of the operator* that is a
//! a member of the nested namespace mathLib::MatrixLib.
//! How would you declare this operator in global scope?
//! mathLib::MatrixLib::matrix mathLib::MatrixLib::operator*
//! (const mathLib::MatrixLib::matrix&, const mathLib::MatrixLib::matrix&);


int main()
{
return 0;
}

0 comments on commit 1c135d4

Please sign in to comment.