In my honest opinion C++ is much much harder than any math you will ever do, to a degree. a programmer will spend his life programming only to become a very good sufficient programmer after years of practice and writing apps. But math is right there, its given to you in a book, its up to you to find the answer. I find math to be easy personally, i dunno why, but i find math easy, and i always have, the only math that was hard for me, was trigonomi identities (such as cosx+tanx =? cscx-secx ) stuff like that.
i though too find programming to be fun and easy to a degree, like today i spent all day during fourth period (the period i ta for one of my old math teachers) just thinking of ways i can write a program, i fnally got so into it, that i pulled out my pencil and paper and started writing short blocks of code, then adding some more, writing down comments, things like that. lol i dunno. i just find them both easy and hard to compare, though i think programming will be harder.
last thought..maybe you can compare them in the aspect that they both have periamids you must climb to reach the top. neither one is steeper than the other, both are hard, and take years of dedication to honestly become good at.
or i may be just rambling on right now...so ignore mee...lol