Originally Posted by Shanki235
I had wrote a program in the vi editor using the command vi [filename.cc] in open terminal and now i need to compile n run it so can u pls tell me the syntax for the same.
Spell your words out, and provide details. What version/distro of Linux are you using? And what exactly is "open terminal"??
A quick Google search would have turned up lots. You probably need either "gcc <file>", or "cc <file>", to compile it.