Thursday, September 3, 2009


Some of the steps one have to follow for programming in C and C++ on Fedora 10.

1: Boot the fedora 10 OS from your Hard disk.

2: Go to the 'Terminal' Of the OS.

3: Fedora 10 uses "vi editor" for Programming .

4: Type the following after the '$' symbol vi file_name.c if you want C programming to be executed vi otherwise for C++.

5: You will be provided with a Blank text document which is the vi editor wherein you type your program with the same syntax as you did in Turbo C and Turbo C++.

6:To go back to Terminal press Escape followed by semicolon and wq.


7:Once you are in thye 'Terminal' Type the following for compiling your program

cc file_name.c or cc

8: Once you have compiled you will be provided with a list of all the errors you might have done.

9:If no errors you will be provided with next line wherein to RUN the program you have to type


10.You will be provided with the output screen.

11.wanna go back to the text editor type

vi file_name.c or vi

IMPORTANT WARNING: Never use int main() or void main() in this editor just use main().

No comments: