C语言学习记录_2019.01.29

  • C语言的灵魂:指针
  • #include <stdio.h>

     int main(int argc, char **argv)

{  
printf("Hello, World!\n");

     int i=5;

       scanf("%d", &i);

printf("%d", i+20);

return 0;

}

  • 推荐编程软件:Dev-c++
  • 程序框架

  #include <stdio.h>

  int main()

  {

   return 0;
  }

  • \n换行
  • printf("%d", i+20);%d说明把逗号后面的值填到双引号中
  • void 的不返回东西;

    int 的返回整数类型值;

     int main()里面那句return 0;

猜你喜欢

转载自www.cnblogs.com/Bran-don/p/10336415.html