【单选题】
下列()对结构类型变量定义是错误的。
①
structteacher{intnum;intage;}teach1;
②
struct{intnum;intage;}teach1,teach2;
③
struct{intnum;intage;}teacher;structteacherteach1;
④
structteacher{intnum;intage;};structteacherteach1;
【单选题】
下列()对结构类型变量定义是错误的。
①
struct teacher {int num; int age; } teach1;
②
struct {int num; int age; } teach1, teach2;
③
struct {int num; int age; } teacher; struct teacher teach1;
④
struct teacher {int num; int age; } ; struct teacher teach1;
【单选题】
要从文件file.dat中读出第10个字节到变量c中,下列哪个方法适合? ( )
①
FileInputStream in=new FileInputStream(file.dat); in.skip(9); int c=in.read();
②
FileInputStream in=new FileInputStream(file.dat); in.skip(10); int c=in.read();
③
FileInputStream in=new FileInputStream(file.dat); int c=in.read();
④
RandomAccessFile in=new RandomAccessFile(file.dat); in.skip(9); int c=in.readByte();