write and run program in fedora
i have installed fedora on my system but i really dont have any idea how to write a C++ program in fedora and how to compile it .would anybody help regarding this.
|
For example, I use the command:
Code:
vi test.c And I write this file: Code:
#include<stdio.h> Code:
adam@hydra5:~$ gcc test.c -o test If invoked as 'g++' instead of 'gcc' it will act as a C++ compiler. (You can also invoke it as just 'cc' or 'c++'.) You don't have to operate purely in the command line like this. There are many development environments for X which are fully featured and have a lot of helpful tools. It is up to you to choose the one that you want. I don't know which is most popular these days, as I don't do a lot of coding. Good luck! |
Hi,
you might want to try codeblocks . It's Cross platform IDE for Linux, MacOS and Windows. Since I don't use Fedora, I'm not sure if they got it in there repository... If not you can download it from there site. greetings, guyapi |
can u plz let me know that how to open task manager in fedora 11?
|
Quote:
Note: Please do not use texting shorthand here: you, not u please, not plz And: Welcome to LQ!! |
Quote:
how about a code that looks, compiles and works normal? Code:
#include <stdio.h> Code:
Compiling CH.C: |
Hello smeezekitty,
Quote:
Markus |
Smeezekitty, It's written in C. Perfectly valid C, and a C++ compiler should compile it.
Here's a C++ version for you Code:
//=============================================== |
Code:
Compiling CPPCODE.CPP: it compiles |
Hi
Quote:
Markus |
Just what version of Turbo C++ are you using? Active development of the product was stopped 15 years ago.
|
i know that it is version 3.0 for dos dated 1992
i use Turbo C++ and GCC and i make all my codes so it compiles for both |
Quote:
|
Quote:
|
@original poster sorry for the thread hijack, but return type should be on the same line and needed to make that point
|
All times are GMT -5. The time now is 09:49 PM. |