Skip to content

Commit

Permalink
change the style of define protection and uniform it!
Browse files Browse the repository at this point in the history
  • Loading branch information
mudongliang committed Apr 16, 2015
1 parent 2c364a2 commit 45cc0c9
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions ch14/ex14_02.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
// @See ex7_41.h
// @Add overloaded input, output, addition, and compound-assignment operators

#ifndef CP5_ex14_02_h
#define CP5_ex14_02_h
#ifndef CP5_CH14_EX14_02_H
#define CP5_CH14_EX14_02_H

#include <string>
#include <iostream>
Expand Down Expand Up @@ -45,4 +45,4 @@ inline double Sales_data::avg_price() const
return units_sold ? revenue/units_sold : 0;
}

#endif
#endif // CP5_CH14_EX14_02_H
6 changes: 3 additions & 3 deletions ch14/ex14_05.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef BOOK_H
#define BOOK_H
#ifndef CP5_CH14_EX14_05_H
#define CP5_CH14_EX14_05_H

#include <iostream>
#include <string>
Expand Down Expand Up @@ -28,4 +28,4 @@ bool operator==(const Book&, const Book&);
bool operator!=(const Book&, const Book&);


#endif // BOOK_H
#endif // CP5_CH14_EX14_05_H
6 changes: 3 additions & 3 deletions ch14/ex14_07.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef CP5_STRING_H__
#define CP5_STRING_H__
#ifndef CP5_CH14_EX07_H_
#define CP5_CH14_EX07_H_

#include <memory>
#include <iostream>
Expand Down Expand Up @@ -31,5 +31,5 @@ class String

std::ostream& operator<<(std::ostream&, const String&);

#endif
#endif //CP5_CH14_EX07_H_

6 changes: 3 additions & 3 deletions ch14/ex14_15.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef BOOK_H
#define BOOK_H
#ifndef CP5_CH14_EX14_15_H_
#define CP5_CH14_EX14_15_H_

#include <iostream>
#include <string>
Expand Down Expand Up @@ -36,4 +36,4 @@ bool operator<(const Book&, const Book&);
bool operator>(const Book&, const Book&);
Book operator+(const Book&, const Book&);

#endif // BOOK_H
#endif // CP5_CH14_EX14_15_H_

0 comments on commit 45cc0c9

Please sign in to comment.