Skip to content

Commit a25c397

Browse files
committed
remove things
1 parent a0681ae commit a25c397

File tree

173 files changed

+47
-195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+47
-195
lines changed

ch06/ex6_47.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Test
44
//
55
// Created by pezy on 14/10/30.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
#include <iostream>
98
#include <vector>

ch07/ex7_01.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.1
44
//
55
// Created by pezy on 14/10/30.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
#include <iostream>
98
#include <string>

ch07/ex7_02.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.2
44
//
55
// Created by pezy on 14/11/8.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_02_h

ch07/ex7_03.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.03
44
//
55
// Created by pezy on 14/11/8.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#include "ex7_02.h"

ch07/ex7_04.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.4
44
//
55
// Created by pezy on 14/11/8.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_04_h

ch07/ex7_05.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.5
44
//
55
// Created by pezy on 14/11/8.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// Revised by @Yue Wang Jun 2015:
98
//

ch07/ex7_06.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.6
44
//
55
// Created by pezy on 11/8/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_06_h

ch07/ex7_07.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.7
44
//
55
// Created by pezy on 11/8/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#include "ex7_06.h"

ch07/ex7_09.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.9
44
//
55
// Created by pezy on 11/8/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
//
98
// Revied by @Yue Wang Jun 2015

ch07/ex7_11.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.11
44
//
55
// Created by pezy on 11/9/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#include "ex7_11.h"

ch07/ex7_11.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.11
44
//
55
// Created by pezy on 11/9/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_11_h

ch07/ex7_12.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.12
44
//
55
// Created by pezy on 11/9/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_12_h

ch07/ex7_13.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.13
44
//
55
// Created by pezy on 11/9/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#include "ex7_12.h"

ch07/ex7_15.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.15
44
//
55
// Created by pezy on 11/9/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_15_h

ch07/ex7_21.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.21
44
//
55
// Created by pezy on 11/13/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_21_h

ch07/ex7_22.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.22
44
//
55
// Created by pezy on 11/13/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_22_h

ch07/ex7_23.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.23
44
//
55
// Created by pezy on 11/14/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_23_h

ch07/ex7_24.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.24
44
//
55
// Created by pezy on 11/14/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_24_h

ch07/ex7_26.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.26
44
//
55
// Created by pezy on 11/9/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief implementation of class Sales_data
98
// @See ex7_26.h

ch07/ex7_26.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.26
44
//
55
// Created by pezy on 11/14/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @See ex7_21.h
98
// @Add inline member function "Sales_data::avg_pric"

ch07/ex7_27.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.27
44
//
55
// Created by pezy on 11/14/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_27_h

ch07/ex7_27_TEST.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Test of Exercise 7.27
44
//
55
// Created by pezy on 11/14/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#include "ex7_27.h"

ch07/ex7_31.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.31
44
//
55
// Created by pezy on 11/17/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_31_h

ch07/ex7_32.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.32
44
//
55
// Created by pezy on 11/18/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @See ex7_27.h
98

ch07/ex7_41.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.41
44
//
55
// Created by pezy on 11/20/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief implementation of class Sales_data
98
// @See ex7_41.h

ch07/ex7_41.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.41
44
//
55
// Created by pezy on 11/20/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @See ex7_26.h
98
// @Add 1. use delegating constructors

ch07/ex7_41_TEST.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Test of Exercise 7.41
44
//
55
// Created by pezy on 11/14/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#include "ex7_41.h"

ch07/ex7_43.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.43
44
//
55
// Created by pezy on 11/20/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#include <vector>

ch07/ex7_50.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.50
44
//
55
// Created by pezy on 11/24/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @See ex7_22.h
98
// @Add constructors should be explicit

ch07/ex7_53.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.53
44
//
55
// Created by pezy on 11/25/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_53_h

ch07/ex7_57.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 7.57
44
//
55
// Created by pezy on 11/25/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87

98
#ifndef CP5_ex7_57_h

ch08/ex8_02.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.2
44
//
55
// Created by pezy on 11/27/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Test your function by calling it, passing cin as an argument
98

ch08/ex8_04.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.4
44
//
55
// Created by pezy on 11/9/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Write a function to open a file for input and read its contents into a vector of strings,
98
// storing each line as a separate element in the vector.

ch08/ex8_05.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.5
44
//
55
// Created by pezy on 11/9/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Rewrite the previous program to store each word in a separate element.
98
// @See ex8_04.cpp

ch08/ex8_06.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.6
44
//
55
// Created by pezy on 11/27/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Rewrite the bookstore program from ¡ì7.1.1 (p.256) to read its transactions from a file.
98
// Pass the name of the file as an argument to main (¡ì6.2.5, p.218).

ch08/ex8_07.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.7
44
//
55
// Created by pezy on 11/28/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Revise the bookstore program from the previous section to write its output to a file.
98
// Pass the name of that file as a second argument to main.

ch08/ex8_08.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.8
44
//
55
// Created by pezy on 11/28/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Revise the program from the previous exercise to append its output to its given file.
98
// Run the program on the same output file at least twice to ensure that the data are preserved

ch08/ex8_09.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.9
44
//
55
// Created by pezy on 11/29/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Use the function you wrote for the first exercise in § 8.1.2 (p.314) to print the contents of an istringstream object.
98
// @See Exercise 8.1

ch08/ex8_10.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.10
44
//
55
// Created by pezy on 11/29/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Write a program to store each line from a file in a vector<string>.
98
// Now use an istringstream to read each element from the vector a word at a time.

ch08/ex8_11.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.11
44
//
55
// Created by pezy on 11/29/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief The program in this section defined its istringstream object inside the outer while loop.
98
// What changes would you need to make if record were defined outside that loop?

ch08/ex8_13.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 8.13
44
//
55
// Created by pezy on 11/29/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Rewrite the phone number program from this section to read from
98
// a named file rather than from cin.

ch09/ex9_15.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 9.15
44
//
55
// Created by pezy on 12/2/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Write a program to determine whether two vector<int>s are equal.
98

ch09/ex9_16.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 9.16
44
//
55
// Created by pezy on 12/2/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Repeat the previous program, but compare elements in a
98
// list<int> to a vector<int>.

ch09/ex9_18.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 9.18
44
//
55
// Created by pezy on 12/3/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Write a program to read a sequence of strings from the standard input into
98
// a deque. Use iterators to write a loop to print the elements in the deque.

ch09/ex9_19.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 9.19
44
//
55
// Created by pezy on 12/3/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Rewrite the program from the previous exercise to use a list.
98
// List the changes you needed to make.

ch09/ex9_20.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 9.20
44
//
55
// Created by pezy on 12/3/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Write a program to copy elements from a list<int> into two deques.
98
// The even-valued elements should go into one deque and the odd ones into the other.

ch09/ex9_27.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 9.27
44
//
55
// Created by pezy on 12/3/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief Write a program to find and remove the odd-valued
98
// elements in a forward_list<int>.

ch09/ex9_31_1.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 9.31
44
//
55
// Created by pezy on 12/3/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief The program on page 354 to remove even-valued elements and
98
// duplicate odd ones will not work on a list or forward_list. Why?

ch09/ex9_31_2.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 9.31
44
//
55
// Created by pezy on 12/3/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief The program on page 354 to remove even-valued elements and
98
// duplicate odd ones will not work on a list or forward_list. Why?

ch09/ex9_32.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// Exercise 9.32
44
//
55
// Created by pezy on 12/3/14.
6-
// Copyright (c) 2014 pezy. All rights reserved.
76
//
87
// @Brief In the program on page 354 would it be legal to write the call to insert as follows?
98
// If not, why not?

0 commit comments

Comments
 (0)