资源简介

c语言 银行取号排队队列程序源码,不解释你懂的。

资源截图

代码片段和文件信息

#include
#include
#include
#include
#include
#include
#include
#include
#include
#include


int main(int argcchar **argv)
{
     int fd;
     int lenret;
     struct sockaddr_in remoteaddr;
     char data[1024];
  
     

   

     fd = socket(AF_INET SOCK_STREAM 0);
     remoteaddr.sin_family = AF_INET;
     remoteaddr.sin_addr.s_addr = inet_addr(“127.0.0.1“) ;
     remoteaddr.sin_port = htons(5800);
     len = sizeof(remoteaddr);


     ret = connect(fd (struct sockaddr *)&remoteaddr len);
     if(ret == -1) 
     {
            printf(“connect() error\n“);
            return -1;
     }

  
     while(1)
     {
      loop:
           prin

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     目录          0  2011-05-28 01:30  take_number

     目录          0  2010-05-22 10:50  take_number\take_number

     文件       4222  2009-11-04 15:57  take_number\take_number\agent_look.c

     文件       1328  2009-09-23 21:43  take_number\take_number\client.c

     文件       2259  2009-11-04 14:24  take_number\take_number\client_number_machine.c

     文件      26847  2011-05-30 00:52  take_number\take_number\server.c

     文件       2634  2009-11-04 15:51  take_number\take_number\take_number.c

     文件        483  2009-11-03 22:14  take_number\take_number\取号机流程.txt

     文件        621  2009-11-03 23:27  take_number\take_number\显示屏.txt

     文件        540  2009-11-03 23:55  take_number\take_number\经理检查系统.txt

----------- ---------  ---------- -----  ----

                38934                    10


评论

共有 条评论