i heard linux is best OS for programmers plus i wanted to get a little expierienced with another OS but the thing is i dont know what c++ compiler or IDE i should use in ubuntu 12.4
thanx in advance
I just wanted to point out to the OP just in case there is some confusion that a compiler and a IDE are not the same thing. A IDE is basically a text editor with tools. On most IDE's you can choose from multiple compilers to use.
But anyways for a compiler I would go with Clang++ like LB recommended, it has some of the best error messages which is what I love and some very good features. Another very supported options for Linux compilers is gcc so that is another option to.
As for a text editor/IDE I would choose between Sublime and Eclipse depending on what you are going to be doing and the size of your projects. I generally use Sublime for the little stuff and Eclipse for the larger stuff.