C computer program online | my experiences

Now run your  C ++/C computer program online, without installing the compiler. Click on "Run Program Here" above for this. Earlier, we have learned about the compiler and have installed it. You can have difficulty without reading it. Click here to read if you have not read my previous post.
First you have to save the file by typing program and then we will learn to execute it. Today we will learn how to do this.

Save C ++/C computer program online to file

 C computer program For Windows 

1. open dev-c ++ (Start -> All Programs -> Dev-C ++)
2 . If the window of "Tip of the Day" is opened in Dev-C ++ then close it. (You can also read these tips before closing, maybe it will probably work)
3. Now click on File (at the top left and right) and click on New and then click on Source File. Now you can start writing programs in the box. For now write the following program there.

C computer program online
C computer program online
4. Now go to Execute -> Compile in the menu.
Note: The above program will be written incorrectly without spelling errors or otherwise compile the error.
5. Now go to Execute -> Run in the menu. A black window in front of you will be written on which Namaskar will be written. This is the output of this program. Now you can close the black window.

C computer program online for Linux

1. Create a new file in any text editor (vim, gedit, emacs ...)
2 . Write the following program in that file and save it in any folder. Place the file name namaskar.c. Well you can put anything in the name but it is necessary to put .c at the end of the C program file.
C computer program
C computer program

3. Now open the terminal and use cd command to go to that folder where you have saved the program. Here 4 commands can be your main task.
1. ls: To see the names of all the files and folders located inside the current folder
2. cd ..: to come out of the current folder.
3. cd <folder name>: to go to a folder located inside the current folder
4. pwd: to see the full location of the current folder.

4. Here's the terminal type
gcc namaskar.c
And enter If no error has occurred, then your program has been successfully compiled.

5. Type to Run

./a.out

Namaskar will be written on the screen. And your program ran. Interact by typing anything to come out
==============

Congratulations, your first program has run successfully. If you have any problem, you comment on this post, along with your C / C ++ program and error so that we can easily recognize your mistake.
If you liked this article, please tell your friends as it can prove to be useful for them too !!
ShowHideComments