Originally Posted by badriinvenkat
i know how to write a programme and execute it in windows
You mean using some IDE, such as Visual Studio? Or do you understand other ways to write and execute programs?
If you only understand programming with an IDE, you should install and learn an IDE such as CODE::BLOCKS.
But Linux IDE's aren't very easy to setup and start using. I doubt anyone at LQ would have the patience to walk you through every detail. So if you try that, find a decent online tutorial for it and follow that.
CODE::BLOCKS can be very convenient to use, especially for debugging (as compared to learning how to use gdb directly) after
you go to the trouble of installing it properly and learning the basics of using it.
i didn't understand about the executable thing can you please explain it with an example
In an IDE there is one button to compile and execute a program. Without an IDE, it doesn't work that way. That is the same in Windows and Linux. There is one command to compile the program and another command to execute it.
That compiled the program and named the result executable
No you have a program named executable
in your current directory.
To run that program type