Sabtu, 03 Oktober 2015

Tutorial how to create a hello world program in C (the explanation of each part of the source code), compiling, reading the compiler errors, running the compiled program

This time I will make the simple coding to use printf , to more clearly see below ya !
1. if Dev C ++ application is installed , it's time now to make a simple project
2. Open Dev - C ++ applications such as in the picture below , this is the first appearance that you will see when the application is open . And we just create a new project by clicking File> New > Source File or just press Ctrl + N on the keyboard
3. there will open a blank new project,it the place where we will make coding

 4. follow the coding as shown.

 5. after that , just Compile and Run or just press F11 key on the keyboard
6. Before compiled , the file should be saved . named Hello to select the file extension .cpp . .cpp is an extension to the C ++ language files while the c language select .c . then save

7. And the process of compiling and run is finish. Below are compiling a log which will tell whether the compilation was running  perfectly without error or not error . Then will appearance command prompt , it is an application that we just created by using printf ( " Hello World !! " ) will be presenting  text Hello World !! . so easy right ?, try it and good luck guys!


Tidak ada komentar:

Posting Komentar