Find Jobs
Hire Freelancers

chat pgmin c++

$25-30 USD

Completed
Posted about 22 years ago

$25-30 USD

Paid on delivery
URGENT REQUIRE WITHIN 24 HRS. 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
Project ID: 2845660

About the project

1 proposal
Remote project
Active 22 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
See private message.
$16 USD in 14 days
4.9 (5 reviews)
2.8
2.8

About the client

Flag of UNITED STATES
United States
5.0
2
Member since Feb 21, 2002

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.