我看过《女人不哭》 章子君的曲折生活,奋斗历程也让我更坚定的度过了那段日子。她最后还是成功了,事业and情感。从她身上,我学会: 坚强、忍耐、等待

发布新日志

  • 1. fopen【翻】

    2007-07-21 16:31:33

    my english level is listed~~~~
    大概意思,如果有错误,欢迎指出~~
    ----------
    Opens a file for buffered I/0.
    打开文件到IO缓冲器
    FILE *fopen ( const char *filename, const char *access_mode );
    filename
    The name of the file to open.
    想要打开的文件名
    access_mode
    The type of access mode: r, w, a or r+, w+, a+, where the "+" sign indicates that the file must already exist.
    存取方式:r, w, a or r+, w+, a+, 当+符号存在的时候,文件必须已经窜自傲

    The access_mode parameter serves also to specify whether we want to open the file as text or binary, adding t or b characters to this access mode string.

    存取方式参数也可以制定我们要打开的文件类型,是.txt还是二进制格式,用t或者b表示

    t
    Text mode. In text mode the end of file is assumed to be at first Ctrl+Z character. Some conversions can occur reading and writing with End Of Line / Feedback characters depending on your compiler and your Operating System.
    文本模式。在这种模式中,文件末尾假定是第一次出现Ctrl+Z的地方。在读或者写最后字符的时候,可能会发生一些转换。返回的字符取决于你的编译器和你的操作系统。
    b
    Binary mode. End of file is reached at last byte of the file. No conversions.
    二进制模式。最后一个字符就是文件的结束。不会发生转换。

    Do not include operating system header files (e.g. stdio.h) in scrīpts. This will result, however, in some types, including the FILE type used here, to be undefined. Instead, substitute a long for the FILE type.

    不要在脚本中定义头文件,如stdio.h。如果包含了FILE类型在这里使用的话,可能会有这样的结果,就是FILE未定义。此时,可以用long声明FILE~

数据统计

  • 访问量: 4278
  • 日志数: 6
  • 建立时间: 2007-07-21
  • 更新时间: 2007-09-04

RSS订阅

Open Toolbar