Be fair! Learning to program is also a lot more than learning language $(ProgrammingLanguage).
Learning to program takes a lot longer than it would take to read either book, no matter which order you read them in.
That said, if you want to learn C++ in the many years it will take you to become a great programmer I recommend these books and in approximate this order.
The C++ Standard Library
More Effective C++
More Exceptional C++
Exceptional C++ Style
C++ Template Meta-programming