Skip to content

Commit

Permalink
remove unnessary and blank lines in cpp files
Browse files Browse the repository at this point in the history
  • Loading branch information
Mooophy committed Aug 24, 2015
1 parent e767754 commit 48fcbb5
Show file tree
Hide file tree
Showing 51 changed files with 0 additions and 248 deletions.
1 change: 0 additions & 1 deletion ch01/ex1_9.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,3 @@ int main()

return 0;
}
// output: sum is: 3825
13 changes: 0 additions & 13 deletions ch03/ex3_16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,3 @@ int main()

return 0;
}

///
///@Output(JSON-like format)
///{
/// "v1":{"size":"0","value":[]}
/// "v2":{"size":"10","value":[0,0,0,0,0,0,0,0,0,0]}
/// "v3":{"size":"10","value":[42,42,42,42,42,42,42,42,42,42]}
/// "v4":{"size":"1","value":[10]}
/// "v5":{"size":"2","value":[10,42]}
/// "v6":{"size":"10","value":[(null),(null),(null),(null),(null),(null),(null),(null),(null),(null)]}
/// "v7":{"size":"10","value":[hi,hi,hi,hi,hi,hi,hi,hi,hi,hi]}
///}
///
9 changes: 0 additions & 9 deletions ch03/ex3_17.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,3 @@ int main()

return 0;
}

///
///@Output
///pezy is a good programmer you can ask any question to him all the time he is playing the codes
///^D(EOF)
///PEZY IS A GOOD PROGRAMMER YOU CAN ASK
///ANY QUESTION TO HIM ALL THE TIME HE
///IS PLAYING THE CODES
///
29 changes: 0 additions & 29 deletions ch04/ex4_28.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,32 +41,3 @@ int main()

return 0;
}

//Print
/**************************/
//void: nullptr_t 8 bytes

//bool: 1 bytes

//char: 1 bytes
//wchar_t: 2 bytes
//char16_t: 2 bytes
//char32_t: 4 bytes

//short: 2 bytes
//int: 4 bytes
//long: 4 bytes
//long long: 8 bytes

//float: 4 bytes
//double: 8 bytes
//long double: 16 bytes

//int8_t: 1 bytes
//uint8_t: 1 bytes
//int16_t: 2 bytes
//uint16_t: 2 bytes
//int32_t: 4 bytes
//uint32_t: 4 bytes
//int64_t: 8 bytes
//uint64_t: 8 bytes
24 changes: 0 additions & 24 deletions ch07/ex7_41_TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,27 +28,3 @@ int main()

return 0;
}

// print
/*
* 1. default way:
* ----------------
* Sales_data(const std::string&, unsigned, double)
* Sales_data()
*
* 2. use std::string as parameter:
* ----------------
* Sales_data(const std::string&, unsigned, double)
* Sales_data(const std::string&)
*
* 3. complete parameters:
* ----------------
* Sales_data(const std::string&, unsigned, double)
*
* 4. use istream as parameter:
* ----------------
* Sales_data(const std::string&, unsigned, double)
* Sales_data()
* Sales_data(istream &is)
*
*/
1 change: 0 additions & 1 deletion ch08/ex8_04.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ int main()
cout << str << endl;
return 0;
}

1 change: 0 additions & 1 deletion ch08/ex8_05.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ int main()
cout << str << endl;
return 0;
}

1 change: 0 additions & 1 deletion ch09/ex9_34.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,3 @@ int main()

return 0;
}

1 change: 0 additions & 1 deletion ch09/ex9_51.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,3 @@ int main()
d.print();
return 0;
}

4 changes: 0 additions & 4 deletions ch10/ex10_01_02.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ int main()

return 0;
}
//! output:
//!
//ex 10.01: 3
//ex 10.02: 2
4 changes: 0 additions & 4 deletions ch10/ex10_03_04.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,3 @@ int main()

return 0;
}
//! output
//!
//ex 10.03: 10
//ex 10.04: 4
3 changes: 0 additions & 3 deletions ch10/ex10_06.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,3 @@ int main()
cout << i << " ";
cout << endl;
}

// @Output
// 0 0 0 0 0 0 0 0 0 0
4 changes: 0 additions & 4 deletions ch10/ex10_11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,3 @@ int main()

return 0;
}
//! output
//ex10.11 :
//Hi 1234 alan wang

3 changes: 0 additions & 3 deletions ch10/ex10_16.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,3 @@ int main()

return 0;
}
//! output :
//!
//ex10.16: 1234 alan
4 changes: 0 additions & 4 deletions ch10/ex10_18_19.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,3 @@ int main()

return 0;
}
//! output :
//!
//ex10.18: turtle jumps over quick slow
//ex10.19: jumps over quick slow turtle
6 changes: 0 additions & 6 deletions ch10/ex10_20_21.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,3 @@ int main()

return 0;
}


//! output :
//!
//ex10.20: 4
//ex10.21: 6 5 4 3 2 1 0
3 changes: 0 additions & 3 deletions ch10/ex10_22.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,3 @@ int main()
std::vector<string> authors{"Mooophy", "pezy", "Queequeg90", "shbling", "evan617"};
std::cout << count_if(authors.cbegin(), authors.cend(), bind(isBiggerThan6, _1, 6));
}

// @Out
// 4
3 changes: 0 additions & 3 deletions ch10/ex10_24.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,3 @@ int main()

return 0;
}
//! output:
//!
//5
3 changes: 0 additions & 3 deletions ch10/ex10_25.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,3 @@ int main()
};
biggies(v, 4);
}

// @Out
// jumps over quick slow turtle
4 changes: 0 additions & 4 deletions ch10/ex10_42.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,3 @@ int main()
std::cout << e << " ";
std::cout << std::endl;
}

//! output
//!
//aa aasss
2 changes: 0 additions & 2 deletions ch11/ex11_7.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,3 @@ int main()

return 0;
}


2 changes: 0 additions & 2 deletions ch11/ex11_8.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,3 @@ int main()

return 0;
}


2 changes: 0 additions & 2 deletions ch11/ex11_9_10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,3 @@ int main()

return 0;
}


1 change: 0 additions & 1 deletion ch13/ex13_13.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ int main()

return 0;
}

5 changes: 0 additions & 5 deletions ch13/ex13_17_1.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,3 @@ int main()
f(b);
f(c);
}

// output
// 10
// 10
// 10
5 changes: 0 additions & 5 deletions ch13/ex13_17_2.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ int main()
f(b);
f(c);
}

// output
// 13
// 14
// 15
5 changes: 0 additions & 5 deletions ch13/ex13_17_3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ int main()
f(b);
f(c);
}

// output
// 10
// 11
// 12
24 changes: 0 additions & 24 deletions ch13/ex13_53_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,3 @@ int main()
hp1 = hp2;
hp1 = std::move(*pH);
}

// when used copy-and-swap

//call constructor
//call constructor
//call constructor
//call copy constructor !!!
//call swap !!!
//call destructor !!!
//call move constructor !!!
//call swap !!!
//call destructor !!!
//call destructor
//call destructor

// when used two assignment operator.

//call constructor
//call constructor
//call constructor
//call copy assignment !!!
//call move assignment !!!
//call destructor
//call destructor
7 changes: 0 additions & 7 deletions ch14/ex14_24_TEST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,3 @@ int main()

return 0;
}







6 changes: 0 additions & 6 deletions ch15/ex15.1.2.3/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,3 @@ double print_total(std::ostream &os, const Quote &item, size_t n)

return ret;
}






5 changes: 0 additions & 5 deletions ch15/ex15.11/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,3 @@ void print_debug(const Quote &q)
{
q.debug();
}





5 changes: 0 additions & 5 deletions ch15/ex15.12.13.14/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,3 @@ void print_debug(const Quote &q)
{
q.debug();
}





1 change: 0 additions & 1 deletion ch15/ex15.30/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ int main()
basket.total_receipt(log);
return 0;
}

1 change: 0 additions & 1 deletion ch15/ex15.31.32.33.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,4 +82,3 @@ int main()

return 0;
}

1 change: 0 additions & 1 deletion ch15/ex15.34.35.36.38/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,4 +114,3 @@ int main()

return 0;
}

1 change: 0 additions & 1 deletion ch15/ex15.39.40/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,3 @@ int main()

return 0;
}

6 changes: 0 additions & 6 deletions ch15/ex15.4.5.6/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,3 @@ double print_total(std::ostream &os, const Quote &item, size_t n)

return ret;
}






1 change: 0 additions & 1 deletion ch15/ex15.42_b/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,3 @@ int main()

return 0;
}

1 change: 0 additions & 1 deletion ch15/ex15.42_c/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,3 @@ int main()

return 0;
}

6 changes: 0 additions & 6 deletions ch15/ex15.7/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,3 @@ double print_total(std::ostream &os, const Quote &item, size_t n)

return ret;
}






6 changes: 0 additions & 6 deletions ch15/ex15.8.9.10/ex15.8.9.10.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,3 @@ double print_total(std::ostream &os, const Quote &item, size_t n)

return ret;
}






1 change: 0 additions & 1 deletion ch16/ex16.12.13/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,3 @@ int main()

return 0;
}

1 change: 0 additions & 1 deletion ch16/ex16.21.22/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,3 @@ int main()

return 0;
}

1 change: 0 additions & 1 deletion ch16/ex16.24/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ int main()
Blob<int> b(v.begin(), v.end());
return 0;
}

1 change: 0 additions & 1 deletion ch16/ex16.29/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,3 @@ int main()
b[0] = "zzzz";
std::cout << b[0] << "\n";
}

Loading

0 comments on commit 48fcbb5

Please sign in to comment.