MyEyes

Logging my life

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2012年2月10日

摘要: 仅自己学习,不喜勿喷1. cc helloworld.c (output is a.out) $ a.out --> hello, world!#include <stdio.h>main() /* main函数是特殊的,每个程序都是从名为 main 的函数作为执行的起点。也就是说每个程序都必须包含一个main函数 */{ printf("hello, world!\n");}/*和*/是C语言中的注释2. 在C语言中所有变量都必须先声明后使用for(int i=0; i<=300; i+=20) 这种语法仅在C99中才被支持,因此如果想写成这样,必 阅读全文
posted @ 2012-02-10 10:52 MyEyes 阅读(543) 评论(0) 推荐(0) 编辑