elhacker.net cabecera Bienvenido(a), Visitante. Por favor Ingresar o Registrarse
¿Perdiste tu email de activación?.

 

 


Tema destacado: (TUTORIAL) Aprende a emular Sentinel Dongle By Yapis


  Mostrar Mensajes
Páginas: [1]
1  Programación / Programación C/C++ / Necesito ayuda con el siguiente codigo en: 5 Octubre 2022, 00:59 am
Necesito ayuda en este programa: poder poner el nombre completo con espacios, que al poner el número telefónico completo no salte todo igual que el correo

Código
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6. int m;
  7. cout << "\t\t BIENVENID@ A PRETTY WOMAN\n"
  8. << endl;
  9. cout << "HOLA! POR FAVOR ELIJA LA OPCIÓN DESEADA:\n"
  10. << endl;
  11. cout << " 1.-EMPLEO\n";
  12. cout << " 2.-SALIR \n";
  13. cin >> m;
  14. switch (m)
  15. {
  16. int edad;
  17. int nombre;
  18. int m;
  19. case 1:
  20. cout << "VERIFICACION DE EDAD..." << endl;
  21. cout << "AÑOS:";
  22. cin >> edad;
  23. if (edad >= 18)
  24. {
  25. cout << "Perfecto! Cumples con la edad solicitada, puedes continuar:\n"
  26. << endl;
  27. cout << "¿A QUE PUESTO DE INTERÉS USTED SE DIRIGE?\n"
  28. << endl;
  29. cout << " 1.-EMPLEADO\n";
  30. cout << " 2.-COORDINADOR\n";
  31. cout << " 3.-DISEÑADOR WEB\n";
  32. cout << " 4.-MARKETING\n";
  33. cin >> m;
  34. switch (m)
  35. case 1:
  36. case 2:
  37. case 3:
  38. case 4:
  39. cout << "\t\t SOLICITUD DE REGISTRO\n"
  40. << endl;
  41. char nombre[30];
  42. char sexo[10];
  43.    int edad;
  44. int telefono;
  45. int correo;
  46. cout << "Ingrese los siguientes datos:\n"
  47. << endl;
  48. cout << "NOMBRE COMPLETO:" << endl;
  49. cin >> nombre;
  50. cout << "\n"
  51. << endl;
  52. cout << "EDAD:" << endl;
  53. cin >> edad;
  54. cout << "\n"
  55. << endl;
  56. cout << "SEXO:" << endl;
  57. cin >> sexo;
  58. cout << "\n"
  59. << endl;
  60. cout << "CONTACTO\n"
  61. << endl;
  62. cout << "NUMERO TELEFONICO:" << endl;
  63. cin >> telefono;
  64. cout << "\n"
  65. << endl;
  66. cout << "CORREO ELECTRONICO:" << endl;
  67. cin >> correo;
  68. cout << "\n"
  69. << endl;
  70. cout << "INFORMACION REGISTRADA CORRECTAMENTE &#10004;\n"
  71. << endl;
  72. cout << "A continuacion le pediremos que realice un video con una duracion de 2 minutos, detallandonos los siguientes criterios:\n" << endl;
  73. cout << "-Datos personales\n";
  74. cout << "-Experiencia Laboral\n";
  75. cout << "-¿Dónde se informo de la oferta de trabajo?\n";
  76. cout << "-Resalte 3 de sus virtudes\n";
  77. cout << "-¿Porqué deberíamos contratarlo?\n"
  78. << endl;
  79. cout << "Tendrá 24 horas para realizar este procedimiento y mandarlo así al siguiente correo:" << endl;
  80. cout << "prettywoman@hotmail.com" << endl;
  81. return 0;
  82. }
  83. else if (edad < 18)
  84. cout << "Lo sentimos, no cumples con la edad solicitada. " << endl;
  85. cout << "\n";
  86. main();
  87. }
  88. cin.ignore();
  89. return 0;
  90. }

MOD: El código debe ir entre etiquetas de Código GeSHi
Páginas: [1]
WAP2 - Aviso Legal - Powered by SMF 1.1.21 | SMF © 2006-2008, Simple Machines