摘要:
1.A guy will make you think he loves you, but he really doesn't. A girl will make you think she doesn't love you, when she really does.2.A girl needs to wear two things to look great: Confidence and Smile !3.Every time you come to my mind, I realize I'm smiling. 。4.That's the worst p 阅读全文
posted @ 2011-04-14 13:55
Moupeng.Yang
阅读(1020)
评论(0)
推荐(0)
摘要:
时间类型:Coordinated Universal Time(UTC): 世界标准时间,也就是大家所熟悉的格林威治标准时间(Greenwich Mean Time, GMT)Calender Time: 日历时间,是用一个标准时间点到此时经过的秒数来表示时间。时间获取:time_t time(time_t *tloc)获取日历时间,即从1970年1月1日0点到现在所经历的秒数struct tm *gmtime(const time_t *timep)将日历时间转化为格林威治时间,并保存在TM 结构struct tm *localtime(const time_t *timep)将日历时间转化 阅读全文
posted @ 2011-04-14 12:14
Moupeng.Yang
阅读(300)
评论(0)
推荐(0)
摘要:
系统调用方式访问文件系统调用依赖于操作系统int creat(const char *filename, mode_t mode)mode:创建模式(指定文件的属性)可以直接用数字表示文件的访问权限filename:要创建的文件名(包含路径,缺省为当前路径)例子:#include <stdio.h>#include <stdlib.h>#include <sys/types.h>#include <sys/stat.h>#include <fcntl.h>void create_file(char *filename){ if(cre 阅读全文
posted @ 2011-04-14 11:21
Moupeng.Yang
阅读(559)
评论(0)
推荐(1)
摘要:
FILE *fopen(const char *filename, const char *mode)filename 打开的文件名 mode 打开模式 返回文件指针size_t fread(void *ptr, size_t size, size_t, FILE *stream)从stream指向的文件中读取n个字段,每个字段为size字节,并将读取的数据放在ptr所指的字符数组中,返回实际读取字节数size_t fwrite(const void *ptr, size_t size, size_t n, FILE *stream)从缓冲区ptr所指的数组中把n个字段写到stream指向的文 阅读全文
posted @ 2011-04-14 00:05
Moupeng.Yang
阅读(555)
评论(0)
推荐(0)

浙公网安备 33010602011771号