美文网首页
The C Programming Language

The C Programming Language

作者: ZYKDD | 来源:发表于2019-08-04 13:50 被阅读0次

C 语言学习经典书籍The C programming language.pdf 英文版

链接:https://pan.baidu.com/s/15OK81D3ytRFFFpWvrLRwkQ

提取码:wsx7

C语言圣经

Chapter 01

1.1 first program:

#include <stdio.h>       //include information about standard library

main()       // define a function called main

{     

       printf("hello, world\n");   //"printf" is a founction,"\n" represents the newline character

}

1.2 Variables and Arithmetic Expressions

#include <stdio.h>

    /* print Fahrenheit-Celsius table        for fahr = 0, 20, ..., 300 */  

main()  

{     

          int fahr, celsius;     

          int lower, upper, step;

          lower = 0;      /* lower limit of temperature scale */    

          upper = 300;    /* upper limit */     

          step = 20;      /* step size */

          fahr = lower;   

         while (fahr <= upper) {        

                  celsius = 5 * (fahr-32) / 9;        

                  printf("%d\t%d\n", fahr, celsius);          

                  fahr = fahr + step;    

}

相关文章

网友评论

      本文标题:The C Programming Language

      本文链接:https://www.haomeiwen.com/subject/saxydctx.html