Find Jobs
Hire Freelancers

C++ Stack Program

$25-30 USD

Terminado
Publicado hace más de 20 años

$25-30 USD

Pagado a la entrega
**Part I** You are to write a class that implements a stack. Your stack should hold objects of any class type. So this class will be implemented using **TEMPLATES**. In the description below the word itemType refers to the templated type the user will provide when using this class. Your stack class MUST be implemented 2 times. One time using vectors the second time using a linked list implementation. The following is a DESCRIPTION of which methods you need to write. **template** ** **class Stack{** **Public:** **Stack(); ** **Stack(const Stack & s); ** ** ~Stack(); ** **itemType peek() const;** **bool isEmpty() const; ** **int length() const; ** **const Stack & operator= (const Stack & s) ;** **void push(itemType item); ** **itemType pop(); ** **void makeEmpty(); ** **Private:** **//data here.** **};**** Call this **lab 8** ## Deliverables 1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. 2) Installation package that will install the software (in ready-to-run condition) on the platform(s) specified in this bid request. 3) Exclusive and complete copyrights to all work purchased. (No GPL, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site). ## Platform Functional in visual C++ 6.0. Call this **lab 9**. Use your Stack class from lab 8 to do the following: You are to implement a program that takes as input (from a data file) 2 possibly really, really big integers and adds them together and prints the sum (result) to an output file in a nice format. Your program should add the pairs of numbers on the input file until there is no more data on the file. If there is a number on the file, then there will be a second number to add. Your output file MUST have both the original values being added together (the addends) and the sum. These should be aligned neatly and should be easy to read. You MUST use a stack to add the digits. The data file (input file) has each integer on a separate line, and you are only adding each pair of values, getting an answer and outputting that. So you will have several pairs of integers with their respective sums on the output file. Data file **[login to view URL]** should be used to test the final program
ID del proyecto: 3031404

Información sobre el proyecto

5 propuestas
Proyecto remoto
Activo hace 20 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
Adjudicado a:
Avatar del usuario
See private message.
$12 USD en 1 día
4,9 (20 comentarios)
2,8
2,8
5 freelancers están ofertando un promedio de $20 USD por este trabajo
Avatar del usuario
See private message.
$23,80 USD en 1 día
5,0 (126 comentarios)
4,7
4,7
Avatar del usuario
See private message.
$17 USD en 1 día
5,0 (36 comentarios)
3,6
3,6
Avatar del usuario
See private message.
$25,50 USD en 1 día
4,7 (15 comentarios)
3,8
3,8
Avatar del usuario
See private message.
$21,25 USD en 1 día
5,0 (15 comentarios)
3,1
3,1

Sobre este cliente

Bandera de UNITED STATES
Cameron, United States
5,0
9
Miembro desde nov 4, 2003

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.