This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <string_view> | |
#include <string> | |
#include <cstdlib> | |
#include <limits> | |
// Clear the console. | |
void clearScreen() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <cstdint> | |
#include <vector> | |
#include <cstdlib> | |
#include <string> | |
void pauseScreen() | |
{ | |
std::cout << "Press Enter to continue..."; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <limits> | |
#include <cstdlib> | |
#include <string> | |
#include <array> | |
// Estructura de todos las las categorias | |
struct CustomerType | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Incluimos las librerias necesarias | |
#include <iostream> | |
#include <string> | |
#include <array> | |
#include <vector> | |
#include <cstdlib> | |
#include <cstdint> | |
// ---------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Crear un programa que determine si una matriz es simetrica o si no lo es. | |
// Invocamos las librerias, creamos variables y les asignamos valores. | |
#include <iostream> | |
#include <conio.h> | |
using namespace std; | |
int rows, columns; // Utiles para una matriz. | |
int count; // Util para un conteo. | |
char answer = 'F'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* MULTIPLEXACION DE DOS DISPLAYS 7 SEGMENTOS - CONTEO ASCENDENTE Y DESCENDENTE | |
Por: Jonathan Rivas. | |
En este codigo se explica detalladamente como realizar la multiplexacion para dos | |
dos displays 7 segmentos catodo comun, realizando un conteo ascendente de 0 a 99 y descendente | |
de 99 a 0. | |
No es necesario el uso de librerias, ya que el proposito de este codigo es hacerlo lo mas | |
simple posible para el usuario. El codigo sin lineas de texto, ocupa un espacio aproximado | |
de 60 lineas de codigo. |