forked from pezy/CppPrimer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0c0cd41
commit 1c135d4
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |