Date post: | 08-Sep-2015 |
Category: |
Documents |
Upload: | igor-santiago-monrroy-peralta |
View: | 567 times |
Download: | 16 times |
Ejercicios Con Listas Simples En C++ - Sistema De Venta De PostresSOCIALIZE IT 0
Siguiendo con los ejercicios con Listas Simples Enlazadas en c++, esta oportunidad les voy a compartir este ejercicio:
Ejercicio:
Crear un sistema de ventas para una Tienda de postres, la cual permita registrar y vender postres, adicionalmente cada postre tiene m o n ingredientes.
Implementacion en C++:
Data hosted with byPastebin.com-Download Raw-See Original1. /*2. Autor: Joel Cesar Fernandez Segura3. Curso: Estructura de Datos4. Ejercicio: VENTA DE POSTRES5. IDE: CodeBlocks6. Pagina Web: http://codebotic.blogspot.com7. 8. */9. #include10. #include11. #define maxchar 5012. 13. usingnamespacestd;14. 15. structnodo2{16. charingrediente[maxchar];17. 18. };19. 20. structnodo{21. 22. charnombre[maxchar];23. floatprecio;24. intcodigo;25. intcantIngred;26. nodo2 ingred[maxchar];27. structnodo*sgte;28. 29. };30. 31. typedefstructnodo*TPostre;32. 33. /*-------------------- FUNCION MENU PRINCIPAL ------------------*/34. voidmenu(void){35. 36. cout