C and C++ programming
How to compile and run C and C++ program on Linux
|
man gcc
will give you all the info you need. |
Dear neo77777,
Thankx, but problem is how to run a.out ? |
./a.out
|
vi beer.c
*press letter "i" to start inserting text. then start typing* /* blah */ main() { printf ("gimmi another beer bitch"); } *after you type this example hit the 'esc' key then ':wq' to save* *you should be back at the prompt now* type: gcc beer.c ./a.out |
But why in vi? It's the best method to scare a new Linux (Unix) user...
|
Yeah, why vi? why not ed? Let's not start the best editor flame war here. It doesn't matter as long as the opponent understood the idea behind.
|
sorry - it's what i use. so it was easy to type in a hurry. gedit is great also. ae on debian is good - as is pico.
|
hey hey, i like vi... don't go knocking it ;)
|
u should give Kdevelop a try. it's a great development environment for C and C++ programs. it basically does everything except the programming for u :)
|
Kdevelop is nice. Especially for peple used to VIsual * environments.
|
All times are GMT -5. The time now is 02:29 AM. |