- Using gdb function breakpoints, conditional breakpoints and the watchpoint, continue, and finish commands, debug ch13_gdb_2.cpp.
- Use g++ -c -Wall -Weffc++ -Wextra x.cpp -o x.out to build out cpp files ch13_rca*.cpp. What do you see from their warning outputs?
- Why does static analysis produce false alarms, but dynamic analysis does not?
- Download ch13_tdd_v2.h/.cpp and perform next phase refactoring. In this phase, we will add a copy constructor, assignment operator, and element-wise operation operators such as +, -, *, /, and more. More specifically, we need to do the following things:
- Add the third test case to our test suite, that is, ch13_tdd_Boost_UTF2.cpp.
- Add the implementations of these functions to files; for example, ch13_tdd_v2.h/.cpp.
- Run the test suite to test them.
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand