fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main(int argc, char *argv[]) {
  5. string RespuestaInicio,RespuestaCont,RespuestaVende;
  6. int a=0,b=0,c=0,d=0,e=0,f=0,z=0,no_vendedores,conta_vende=1,conta_arre=0;
  7. string Nombre[50],Vendedores[10];
  8. int NoVenta[50],NoPrendas[50],NoVendedor[50],TotalPrendas[50];
  9. cout << "¿Quieres comenzar la captura de ventas S/N ?";
  10. cin>> RespuestaInicio;
  11. if (RespuestaInicio=="S")
  12. {
  13. do{
  14. cout << "Ingresa Nombre Vendedor";
  15. cin >> Vendedores[d];
  16. cout << "¿agregar otro vendedor? S/N";
  17. cin >> RespuestaVende;
  18. d++;
  19.  
  20. } while(RespuestaVende != "N");
  21.  
  22.  
  23.  
  24.  
  25. while(Vendedores[e]!=""){
  26. cout<< Vendedores[e]<<"Vendedor No."<<e+1<< endl;
  27. e++;
  28. no_vendedores=e;
  29. }
  30. cout<< "Ahora Comienza a capturar las ventas"<<endl;
  31.  
  32.  
  33. do{
  34.  
  35. cout << "No. Vendedor";
  36. cin >> NoVendedor[a];
  37. cout << "Prendas vendidas";
  38. cin >> NoPrendas[a];
  39. //cout << "No. Venta";
  40. //cin >> NoPrendas[c];
  41. cout << "¿Capturar uno mas? S/N";
  42. cin >> RespuestaCont;
  43.  
  44. a++;
  45. //b++;
  46. //c++;
  47.  
  48. } while(RespuestaCont != "N");
  49.  
  50. cout << "AHORA VAMOS A CONTABILIZAR LAS COMISIONES" << endl;
  51. do{
  52. cout << "Vendedor->"<<NoVendedor[z]<<endl;
  53. cout << "Ventas->"<<NoPrendas[z]<<endl;
  54.  
  55.  
  56.  
  57. z++;
  58. }while(z<a);
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66. }
  67. else{
  68. cout << "GRACIAS POR USAR ESTE PROGRAMA";
  69.  
  70. };
  71.  
  72.  
  73.  
  74.  
  75.  
  76. return 0;
  77. }
  78.  
Success #stdin #stdout 0s 5292KB
stdin
Standard input is empty
stdout
¿Quieres comenzar la captura de ventas S/N ?GRACIAS POR USAR ESTE PROGRAMA