Find Jobs
Hire Freelancers

STL _ c++(repost)

$15-20 USD

Cancelado
Publicado hace más de 11 años

$15-20 USD

Pagado a la entrega
There are several flaws in my code. First, what is an object Tweet? In the statement, a "tweet" is defined as a single message. In my code, your class does not seem Tweet this definition. It seems to be much more than that. It seems to contain users (trouverUsager ()). The part of the user management should be elsewhere. Second, the operator >> (std :: istream &, Tweet *) should read one tweet. The while loop should be elsewhere (hand). In addition, it is more appropriate to reference a pointer to the >> operator. Third, the use of large array "char line [100000]" can be problematic. A char [] is not as abstract a std :: string object. In addition, the size is arbitrary. Most tweets take in less than 140 characters. Here, we provided nearly 100 kilobytes on the execution stack. That's a lot for 140. In addition, if we ever needed to change the length of tweet more than 100,000 characters, should think about updating the code. Using a std :: string, as in my example, is clearly more appropriate. Try to restructure my program to get closer to that suggestion. Finally, to help you, here is a little about how you can easily count the number of tweets posted in users: To count the words by users, the trick is to make a map of map. map >. This is not the only way. Your solution, which seems a map is just as well, or even better.
ID del proyecto: 2779139

Información sobre el proyecto

Proyecto remoto
Activo hace 12 años

¿Buscas ganar dinero?

Beneficios de presentar ofertas en Freelancer

Fija tu plazo y presupuesto
Cobra por tu trabajo
Describe tu propuesta
Es gratis registrarse y presentar ofertas en los trabajos

Sobre este cliente

Bandera de CANADA
Canada
5,0
5
Miembro desde ene 26, 2012

Verificación del cliente

¡Gracias! Te hemos enviado un enlace para reclamar tu crédito gratuito.
Algo salió mal al enviar tu correo electrónico. Por favor, intenta de nuevo.
Usuarios registrados Total de empleos publicados
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Cargando visualización previa
Permiso concedido para Geolocalización.
Tu sesión de acceso ha expirado y has sido desconectado. Por favor, inica sesión nuevamente.