Find Jobs
Hire Freelancers

chat pgmin c++

$25-30 USD

Abgeschlossen
Veröffentlicht vor etwa 22 Jahren

$25-30 USD

Bezahlt bei Lieferung
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
Projekt-ID: 2845660

Über das Projekt

1 Vorschlag
Remote Projekt
Aktiv vor 22 Jahren

Möchten Sie etwas Geld verdienen?

Vorteile einer Ausschreibung auf Freelancer

Legen Sie Ihr Budget und Ihren Zeitrahmen fest
Für Ihre Arbeit bezahlt werden
Skizzieren Sie Ihren Vorschlag
Sie können sich kostenlos anmelden und auf Aufträge bieten
Vergeben an:
Avatar des Nutzers
See private message.
$16 USD in 14 Tagen
4,9 (5 Bewertungen)
2,8
2,8

Über den Kunden

Flagge von UNITED STATES
United States
5,0
2
Mitglied seit Feb. 21, 2002

Kundenüberprüfung

Danke! Wir haben Ihnen per E-Mail einen Link geschickt, über den Sie Ihr kostenloses Guthaben anfordern können.
Beim Senden Ihrer E-Mail ist ein Fehler aufgetreten. Bitte versuchen Sie es erneut.
Registrierte Benutzer Veröffentlichte Jobs
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Vorschau wird geladen
Erlaubnis zur Geolokalisierung erteilt.
Ihre Anmeldesitzung ist abgelaufen und Sie wurden abgemeldet. Bitte melden Sie sich erneut an.