C
c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <iostream>
#include <cstring>
using namespace std;
char nombres[100][50];
char tipos[100][50];
int cantidades[100];
float precios[100];
int numPrendas = 50;
struct Producto {
char nombre[50];
int cantidad;
float precio;
};
Producto carrito[100];
int numProductosCarrito = 0;
float saldo = 0;
void inicializarCatalogo() {
strcpy(nombres[0], "Camisa");
strcpy(tipos[0], "Camisas");
cantidades[0] = 20;
precios[0] = 150;
strcpy(nombres[1], "Pantalon");
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run