• 2022-11-04
    6.10open函数的原型函数为说明
    A: intopen(constchar*pathname,flags,intperms)
    B: ssize_topen(intfd,void*buf,size_tcount)
    C: FILE*open(constchar*path,constchar*mode)
    D: off_topen(intfd,off_toffset,intwhence)
  • A

    内容

    • 0

      指针定义char*constp表示__________是常量;指针定义constchar*p表示__________是常量。

    • 1

      Your phone need to be during meeting! ( ). A: open B: turn off C: close D: switch off

    • 2

      The word is formed by abbreviation. A: ON B: OPEN C: AIDS D: OFF

    • 3

      以下fread函数的调用形式中,参数类型正确的是( )。 A: fread(char *buf, int size, int count, FILE fd); B: fread(int count, char *buf, int size, FILE fd); C: fread(int size, char *buf, int count, FILE fd); D: fread(int size, int count, char *buf, FILE fd);

    • 4

      下面程序的运算结果是( )。 #include<iostream> using namespace std; class A { public: virtual void fun()=0; }; class B:public A } public: void fun() {cout<<"new file"<<" ";} }; class C:public A { public: void fun() { cout<<"open file"<<" ";} }; void main() { A a, * p; B b;C c; p=&c; p->fun(); p=&b; } A: new file open file B: new file new file C: 编译出错 D: open file new file