Hello I am new to C/C++ programming through Linux/Unix right now I am using Ubntu 12.04. withg gcc package installed. Q->I just want suggestion in terms of books to read which helps me? Q-> I just want to know the steps from where and how to start?
Hi.
Welcome to linux and C++ worlds ;)
For compiling C++ programs you need to install g++ package.
your answers, There is a tutorial in pdf format in this site which is a good start for learning C++.
Geany, Eclipse, Code::Blocks etc are all good for c++ programming in linux. But almost all of them use GCC/G++ as a base compiler so you need to install g++ first.
If you want to use command line, use
g++ source.cpp
. this creates a a.out binary program. Then use
./a.out
to run program in terminal.
If you want to use an IDE, mentioned IDEs are all good.
I strongly recommend working form the command line. You'll get a better understanding of how thing work. In my linux VM, I just use emacs for an editor, with g++ compiler.
Every *nix machine will come with vi built in as a text editor. But it's really ancient and can be a pain to use at first. So I recommend emacs, it has a lot of the same functionality as vi, but without the huge hassle to use.
i try to find out what a .vimrc and emacs file would both look like it C/C++ to get a idea how i can make mine.I know the gvim has cvim.zip for a addon.
I don't really use emacs for much besides auto indent and syntax highlighting, so it's not too hard to set that up. And I think it's much more intuitive to use than vim