当前位置:首页
开发技术指南» 文章正文
    引言:

    摘要: 我一直搞不懂,为什么企业总想用30以下的程序员呢? 这一根源是什么呢?我一直搞不懂,为什么企业总想用30以下的程序员呢? 有什么办法解决这一问题呢??或制止企业这么作呢?大家分析一下!! ......
    摘要: jsp中如何判断数据库中信息是否已经被访问!!在线等,谢谢 ......


很短的代码,但有问题,请指教

#include<stdio.h>  
  #include<utmp.h>  
  #include<fcntl.h>  
   
  main()  
  {  
  int   fd;  
  fd=open("/var/run/utmp",O_RDONLY);  
  perror("open");  
  struct   utmp   array;  
   
  read(fd,&array,sizeof(struct   utmp));  
  perror("read");  
  printf("%s\n",array.ut_user);  
   
  }  
   
   
  为什么read有问题???应该怎么改?

NO.1   作者: sourceid

已改.  
   
  #include   <stdio.h>  
  #include   <sys/types.h>  
  #include   <unistd.h>  
  #include   <utmp.h>  
  #include   <fcntl.h>  
   
  main()  
  {  
  int   fd;  
  fd=open("/var/run/utmp",O_RDONLY);  
  perror("open");  
  struct   utmp   array;  
   
    while(read(fd,&array,sizeof(struct   utmp))   >   0){  
   
    printf("%s\n",array.ut_user);  
   
    }  
   
    return(0);  
  }  
 


    摘要: 有如下表结构 产品名称 客户id 价格 2206ts 14tywm 20.0000 dhk 01hyxhl -1000.0000 hb 27tldbt 25.0000 hl-2213 yyzgh 39.0000 hl-2213 whcg 39.0000 khfl 09wjxc -903.6000 khfl 24mdjdfn -1090.5000 能不能用sql语句生成下面的表结构 产品名称......
» 本期热门文章:

©2000-2007 All Rights Reserved. 最佳浏览:1024X768 MSIE