Entradas

Taller sobre pilas y colas

using System; namespace usandopilasycolasnombresgrupo {     class Program     {         static void Main(string[] args)         {             Console.WriteLine("Hello World!");             Lista L;             Posicion p1, p2;             int aux1, aux2;             /*En la lista L guardaremos el resultado*/             L = CrearLista(sizeof(int));             /*Utilizamos p1 y p2 para recorrer las dos listas*/             p1 = PrimeroLista(l1);             p2 = PrimeroLista(l2);             /*Obtenemos los elementos apuntados por p1 y p2 ,el menor*/             /*de ellos se inserta...

Tarea: Taller con listas enlazadas

using System; namespace listasenlazadas {     class Program     {         static void Main(string[] args)         {             Console.WriteLine("Hello World!");             static void Main(string[] args)             {                 int total = 12;                 int aux = 0, b = 0;                 int[] vector = new int[12];                 for (int j = 0; j < 12; j++)                 {                     Console.WriteLine("introduzca dato");                     vector[j] = int.Parse(Console.ReadLine());   ...

Llenado de matrices

using System; namespace Matriz_de_datos_nombresgrupo {     class Program     {         static void Main(string[] args)         {                       //Variables             //Se crean los vectores             string[] nombres = new string[10];             string[] apellido = new string[10];             int[] edad = new int[10];             double[] cedula = new double[10];             //Iniciamos ciclos para solicitar los datos             for (int i= 0; i < nombres.Length; i++)             {                 Console.WriteLine("Por favor ingrese el nombre de la persona " + (i ...

Taller sobre vectores

using System; namespace Ordenandovectores_nombresgrupo {     class Program     {         static void Main(string[] args)         {                         //Variables:             //Creamos el vector             int[] numerosEnteros = new int[6];             //Solicitamos los datos:             Console.WriteLine("Por favor ingrese seis números enteros: ");             Console.WriteLine(" ");             for (int i = 0; i < numerosEnteros.Length; i++)             {                 try                 {                 ...