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)
举一反三
- 6.9lseek函数的原型函数为说明 A: intlseek(constchar*pathname,flags,intperms) B: ssize_tlseek(intfd,void*buf,size_tcount) C: FILE*lseek(constchar*path,constchar*mode) D: off_tlseek(intfd,off_toffset,intwhence)
- 6.7fcntl函数的原型函数为说明 A: intfcntl(constchar*pathname,flags,intperms) B: intfcntl(intfd,intcmd,structflock*lock) C: FILE*fcntl(constchar*path,constchar*mode) D: intfcntl(intnumfds,fd_set*readfds,fd_set*writefds,fd_set*exeptfds,structtimeval*timeout)
- 以下read函数的调用形式中,参数类型正确的是( )。 A: read(intfd,char*buf,intcount) B: read(int*buf,intfd,intcount) C: read(intfd,intcount,char*buf) D: read(intcount,char*buf,intfd)
- open函数的原型函数为说明
- 用于在代码执行的过程中打开文件的函数为( ) A: open B: close C: on D: off
内容
- 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