摘要: 修改时区cp /usr/share/zoneinfo/UTC /etc/localtime[hayuk@localhost qinghua]$ date 2012年 11月 02日 星期五 08:04:30 CST[hayuk@localhost qinghua]$ su - root 口令:[root@localhost ~]# cp /usr/share/zoneinfo/UTC /etc/localtime cp:是否覆盖“/etc/localtime”? y [root@localhost ~]# date 2012年 11月 02日 星期五 00:07:30 U... 阅读全文
posted @ 2012-11-03 10:32 liangxiaxu 阅读(57789) 评论(0) 推荐(0) 编辑
摘要: 四个常用宏:__FILE__// 当前文件名__DATE__// 编译日期__LINE__// 编译行数__TIME__// 编译时间// liangxiaxu@126.com#include <stdio.h>int main(void){ printf("hello, gcc!\n"); printf("%s\n", __FILE__); printf("%s\n", __DATE__); printf("%d\n", __LINE__); printf("%s\n", __TI 阅读全文
posted @ 2012-11-03 10:15 liangxiaxu 阅读(334) 评论(0) 推荐(0) 编辑
摘要: [hayuk@localhost qinghua]$ touch hello.c [hayuk@localhost qinghua]$ ls hello.c [hayuk@localhost qinghua]$ vim hello.c // liangxiaxu@126.com#include <stdio.h>int main(void){ printf("hello, gcc!\n"); return 0;}// vim: set tabstop=4 shiftwidth=4 expandtab: [hayuk@localhost qinghua]$ ls 阅读全文
posted @ 2012-11-03 09:55 liangxiaxu 阅读(335) 评论(0) 推荐(0) 编辑