That all depends. Many comp sci students are brainwashed to think that if a salary isn't at least 100k then it's not worth their time.
The fact is that it depends on location and cost of living.
For example - if you get hired to work for Google in their HQ in CA then you are guaranteed to get at least 100k salary. However, 90% of that will go towards food/rent (you will most likely rent as houses cost up in the millions...) - which making $60k in a smaller suburb area (where housing is in the affordable $50-$200k range) would arguably be the same net income as if you were working at Google.
I will say that you will earn more in the private sector - but I wouldn't use miserable to describe government salaries (more like underpaid). When I worked for the man it was defiantly an interesting experience but it was a very relaxed environment/startupy feeling.