Find Jobs
Hire Freelancers

chat program

$30-5000 USD

已关闭
已发布大约 22 年前

$30-5000 USD

货到付款
to create a simple chat program in c++ using linked lists to create queues and then storing data in those queues. ## Deliverables For this assignment you will implement a simulation of a chat program. This program is to allow users to sign in and sign out, receive and send messages, print out any messages in any queue currently and clean a specific queue and print out user statistics. As stated earlier this is a simulation an is set up the following way: All commands will be entered from the stdin The following commands are valid (user is to be replaced by a unique user name for each user in the system): u user - add user to the system (you will need to make sure there exists an input file for this user). x user - remove user from the system do not save the current messages in the queue. m user - in coming message from the user. The message will be read from the users input file and will contain the receivers id. It will need to be either written to the receivers message queue or it the receiver is not an active user a message needs to be written to the senders output file stating the error. p user - print the messages in the users message queue in the order of their arrival. s user - print out the statistics for the user. This includes total number of sent messages, total number of received messages, number of undelivered messages. a - print out statistics for all users r user - archive the messages in the users incoming queue to the users output file (in order of their arrival) and empty the user's incoming queue. e - archive all current queues, print out message statistics for each user and the entire program to stdout and exit the program q - quit the system without saving the current queues to files (do not print out the statistics) Each user needs to have an input file [login to view URL] The output of each user will be written to [login to view URL] Confirmation of executing a command will go to stdout The input file format example is here: [login to view URL], [login to view URL] and [login to view URL] (destination user (8), message (up to 50)). If the user is user itself and the message is 'x' then the user is logging off. You need to save the users queue and remove the user form the system. The output file format example is here: [login to view URL] and [login to view URL] (sending user (8), message (up to 50)) stdin format example is here stdout format example is here Each message is no longer than 50 characters, each user name is no longer than 8 characters and is a valid file name in UNIX. You can assume that the format of all input is correct. However your program will need to make sure that there are no duplicate users entered into the system and that each user added to the system will have an input file. ## Platform g++,unix based
项目 ID: 2844481

关于此项目

7提案
远程项目
活跃22 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
7威客以平均价$212 USD来参与此工作竞价
用户头像
See private message.
$25.50 USD 在14天之内
4.7 (6条评论)
3.4
3.4
用户头像
See private message.
$1,147.50 USD 在14天之内
1.5 (1条评论)
4.3
4.3
用户头像
See private message.
$34 USD 在14天之内
4.7 (32条评论)
3.3
3.3
用户头像
See private message.
$50.15 USD 在14天之内
5.0 (1条评论)
1.9
1.9
用户头像
See private message.
$37.40 USD 在14天之内
5.0 (2条评论)
1.0
1.0
用户头像
See private message.
$17 USD 在14天之内
5.0 (1条评论)
0.7
0.7
用户头像
See private message.
$170 USD 在14天之内
5.0 (3条评论)
0.4
0.4

关于客户

UNITED KINGDOM的国旗
United Kingdom
0.0
0
会员自3月 19, 2002起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。