Write the first C Language program with Dev C ++

  Many new students expressed some concern for computer majors, you can take advantage of the play during military training in advance.

  Schools are generally programmed using VS2008, VS2008 powerful, rich content, the volume is relatively large. If you focus only on C language programming, there is a very lightweight software Dev C ++ 

https://pan.baidu.com/s/1DBwHS4rQR3Agoe39cQZ1Dg

  Direct download can be installed! ! !

  1. Download devc ++ compiler, devc ++ is currently used in relatively simple compiler, able to cope with beginners c study and practice.

     
    How to use devc ++ c language entry
     
     
  2.  Devc ++ software open, click on File - New - source code, create a new project and start writing code

     

     

  3.  A complete program needs to include c:

    1. The file header, header files which need to understand what are the contents of the package used, such as the input and output headers FIG stdio.h which encapsulates printf, scanf and control inputs and outputs

    2. The main function, the main function is main () function, the whole process is the inlet, the contents of the main function which may be performed, can continue to define the normal function call in the main function.

    Of course, c includes a plurality of language syntax for implementing specific content, for example, an operator, etc.

     
  4.  Compiler and run to get the results of program execution, you need to save the file to the appropriate directory before compilation, and naming the name of the program, .cpp suffix to the end. Result of the above operation procedures are as follows.
    How to use devc ++ c language entry
    How to use devc ++ c language entry
    How to use devc ++ c language entry
     
     
    Congratulations! The first C language program to run successfully it! It is not very excited about it! Then the next, you can look at books on her own hair down it! ! !

Guess you like

Origin www.cnblogs.com/caiyishuai/p/11454427.html