数据文件如下:
10 smith   sales manager this is smith. 
he is a sales manager.
11 allen.w tech manager  this is allen.w.
he is a tech manager.
16 blake   hr manager    this is blake.    
he is a hr manager.
求infile case1.dat "fix n"的n值为多少?求具体程序

解决方案 »

  1.   

    去掉回车后你的每行记录的长度不是定长,所以fix n(fix是什么
    意思,是“固定”长度)指定多少都不合适。
    并且,对于使用位置方式导入,每一列都要对齐,下面除了第一列
    后面每一列都未对齐,如果长度一样,但每列不对齐也无法导入的。10 smith sales manager this is smith. he is a sales manager.
    11 allen.w tech manager this is allen.w.he is a tech manager.
    16 blake hr manager this is blake.  he is a hr manager.