Cpp-Primer icon indicating copy to clipboard operation
Cpp-Primer copied to clipboard

C++ Primer 5 answers

Results 111 Cpp-Primer issues
Sort by recently updated
recently updated
newest added

```cpp if (int ival = get_value()) cout

Merge all pull request

![image](https://user-images.githubusercontent.com/32841874/173831956-8f26c73c-ba10-4286-988f-bae85c30113e.png)

![image](https://user-images.githubusercontent.com/32841874/173558776-318f9550-e6bc-4184-bf02-af028e9b6b1f.png)

Hi, In the answers, you suggest that 012 is an octal type and 0xC is a hexadecimal I was wondering if you have considered that octal and hexadecimal are just...

in the `ex13_44_47.h`, the size and length function is different. ~~~cpp size_t size() const { return end - elements; } size_t length() const { return end - elements - 1;...

to avoid code duplication caused by overloading of const member function, "casting away constness" should be applied. according to no.7 principle in effective c++ .

add a pair of parentheses to declare a variable ACCORDING TO error log.

C++ program to search the element in an unsorted array using binary search.