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)
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)
举一反三
- 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.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)
- 采用 DAO 完成对"教学管理.mdb"文件中"学生表"的学生年龄都加 1 的操作,程序空白处应填写的语句是 Sub SetAgePlus() Dim ws As DAO.Workspace Dim db As DAO.Database Dim rs As DAO.Recordset Dim fd As DAO.Field Set db = CurrentDb() Set rs = db.OpenRecordset("学生表") Set fd = rs.Fields("年龄") Do While Not rs.EOF ___________ fd = fd + 1 rs.Update rs.MoveNext Loop rs.Close db.Close Set rs = Nothing Set db = Nothing End Sub
- 以下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);
- 力偶矩可用下列()式子表示。 A: AT=Fd B: BT=±FD C: CT=±Fd D: DT=FD