Skip to content

Commit 482701b

Browse files
Merge branch 'mouredev:main' into main
2 parents 2fe2dfd + 23b248a commit 482701b

File tree

881 files changed

+87791
-2678
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

881 files changed

+87791
-2678
lines changed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.vscode/
22
*.txt
33
*.xml
4+
*.iml
45
*.json
56
!stats.json
6-
.DS_Store
7+
.DS_Store
8+
.idea/

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
2828
## Corrección y próximo ejercicio
2929

30-
> #### Lunes 27 de mayo de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31-
> #### Consulta el **[horario](https://discord.gg/9Nxvfsfp?event=1239679210918903858)** por país y crea un **[recordatorio](https://discord.gg/9Nxvfsfp?event=1239679210918903858)**
30+
> #### Lunes 24 de junio de 2024 a las 20:00 (hora España) desde **[Twitch](https://twitch.tv/mouredev)**
31+
> #### Consulta el **[horario](https://discord.gg/EWMJPcUq?event=1249918242370355262)** por país y crea un **[recordatorio](https://discord.gg/EWMJPcUq?event=1249918242370355262)**
3232
3333
## Roadmap
3434

@@ -55,7 +55,11 @@
5555
|18|[CONJUNTOS](./Roadmap/18%20-%20CONJUNTOS/ejercicio.md)|[📝](./Roadmap/18%20-%20CONJUNTOS/python/mouredev.py)|[▶️](https://youtu.be/0auuM4GROVA)|[👥](./Roadmap/18%20-%20CONJUNTOS/)
5656
|19|[ENUMERACIONES](./Roadmap/19%20-%20ENUMERACIONES/ejercicio.md)|[📝](./Roadmap/19%20-%20ENUMERACIONES/python/mouredev.py)|[▶️](https://youtu.be/0auuM4GROVA)|[👥](./Roadmap/19%20-%20ENUMERACIONES/)
5757
|20|[PETICIONES HTTP](./Roadmap/20%20-%20PETICIONES%20HTTP/ejercicio.md)|[📝](./Roadmap/20%20-%20PETICIONES%20HTTP/python/mouredev.py)|[▶️](https://youtu.be/-pYMoPYSkgM)|[👥](./Roadmap/20%20-%20PETICIONES%20HTTP/)
58-
|21|[CALLBACKS](./Roadmap/21%20-%20CALLBACKS/ejercicio.md)|[🗓️ 27/05/24](https://discord.gg/9Nxvfsfp?event=1239679210918903858)||[👥](./Roadmap/21%20-%20CALLBACKS/)
58+
|21|[CALLBACKS](./Roadmap/21%20-%20CALLBACKS/ejercicio.md)|[📝](./Roadmap/21%20-%20CALLBACKS/python/mouredev.py)|[▶️](https://youtu.be/tqQo9SjJFlY)|[👥](./Roadmap/21%20-%20CALLBACKS/)
59+
|22|[FUNCIONES DE ORDEN SUPERIOR](./Roadmap/22%20-%20FUNCIONES%20DE%20ORDEN%20SUPERIOR/ejercicio.md)|[📝](./Roadmap/22%20-%20FUNCIONES%20DE%20ORDEN%20SUPERIOR/python/mouredev.py)|[▶️](https://youtu.be/ABniGtbqAXk)|[👥](./Roadmap/22%20-%20FUNCIONES%20DE%20ORDEN%20SUPERIOR/)
60+
|23|[SINGLETON](./Roadmap/23%20-%20SINGLETON/ejercicio.md)|[📝](./Roadmap/23%20-%20SINGLETON/python/mouredev.py)|[▶️](https://youtu.be/cOIcFo_w9hA)|[👥](./Roadmap/23%20-%20SINGLETON/)
61+
|24|[DECORADORES](./Roadmap/24%20-%20DECORADORES/ejercicio.md)|[📝](./Roadmap/24%20-%20DECORADORES/python/mouredev.py)|[▶️](https://youtu.be/jxJOjg7gPG4)|[👥](./Roadmap/24%20-%20DECORADORES/)
62+
|25|[LOGS](./Roadmap/25%20-%20LOGS/ejercicio.md)|[🗓️ 24/06/24](https://discord.gg/EWMJPcUq?event=1249918242370355262)||[👥](./Roadmap/25%20-%20LOGS/)
5963

6064
## Instrucciones
6165

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
namespace _00_SINTAXIS__VARIABLES__TIPOS_DE_DATOS_Y_HOLA_MUNDO
2+
{
3+
internal class Program
4+
{
5+
static void Main(string[] args)
6+
{
7+
/* EJERCICIO:
8+
* - Crea un comentario en el código y coloca la URL del sitio web oficial del
9+
* lenguaje de programación que has seleccionado.
10+
* - Representa las diferentes sintaxis que existen de crear comentarios
11+
* en el lenguaje (en una línea, varias...).
12+
* - Crea una variable (y una constante si el lenguaje lo soporta).
13+
* - Crea variables representando todos los tipos de datos primitivos
14+
* del lenguaje (cadenas de texto, enteros, booleanos...).
15+
* - Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!" */
16+
17+
//https://dotnet.microsoft.com/es-es/languages/csharp SITIO OFICIAL DE C#
18+
19+
// COMENTARIO EN UNA SOLA LINEA
20+
21+
/* COMENTARIO
22+
* EN
23+
* VARIAS
24+
* LINEAS */
25+
26+
string variable; // variable de tipo string
27+
28+
const double pi = 3.1416; // esto es una variable constante
29+
30+
// Tipos Enteros
31+
32+
// byte: Almacena un número entero sin signo de 8 bits (0 a 255)
33+
byte byteVar = 255;
34+
35+
// sbyte: Almacena un número entero con signo de 8 bits (-128 a 127)
36+
sbyte sbyteVar = -128;
37+
38+
// short: Almacena un número entero con signo de 16 bits (-32768 a 32767)
39+
short shortVar = -32768;
40+
41+
// ushort: Almacena un número entero sin signo de 16 bits (0 a 65535)
42+
ushort ushortVar = 65535;
43+
44+
// int: Almacena un número entero con signo de 32 bits (-2,147483648 a 2147483647)
45+
int intVar = -2147483648;
46+
47+
// uint: Almacena un número entero sin signo de 32 bits (0 a 4294967295)
48+
uint uintVar = 4294967295;
49+
50+
// long: Almacena un número entero con signo de 64 bits (-9223372036854775808 a 9223372036854775807)
51+
long longVar = -9223372036854775808;
52+
53+
// ulong: Almacena un número entero sin signo de 64 bits (0 a 18446744073709551615)
54+
ulong ulongVar = 18446744073709551615;
55+
56+
// Tipos de Coma Flotante
57+
58+
// float: Almacena un número de punto flotante de precisión simple de 32 bits (±1.5e-45 a ±3.4e38), con 7 dígitos de precisión
59+
float floatVar = 3.14f;
60+
61+
// double: Almacena un número de punto flotante de precisión doble de 64 bits (±5.0e-324 a ±1.7e308), con 15-16 dígitos de precisión
62+
double doubleVar = 3.141592653589793;
63+
64+
// Tipo Decimal
65+
66+
// decimal: Almacena un número de punto flotante decimal de 128 bits (±1.0e-28 a ±7.9e28), con 28-29 dígitos de precisión. Ideal para cálculos financieros
67+
decimal decimalVar = 3.1415926535897932384626433832m;
68+
69+
// Tipo Booleano
70+
71+
// bool: Almacena un valor booleano que puede ser true o false
72+
bool boolVar = true;
73+
74+
// Tipo de Carácter
75+
76+
// char: Almacena un carácter Unicode de 16 bits. Puede almacenar cualquier carácter Unicode
77+
char charVar = 'A';
78+
79+
// Tipo de Cadena
80+
81+
// string: Almacena una secuencia de caracteres. Es un tipo de referencia
82+
string stringVar = "Hola, mundo!";
83+
84+
// Tipo de Puntero Nulo
85+
86+
// object: El tipo base de todos los tipos en C#. Puede almacenar cualquier tipo de dato
87+
object objectVar = "Esto es un objeto";
88+
object objectVar2 = 35.6743;
89+
object objectVar3 = 'a';
90+
object objectVar4 = true;
91+
object objectVar5 = 456;
92+
93+
string lenguaje = "C#";
94+
95+
Console.WriteLine($" HOLA {lenguaje}");
96+
}
97+
}
98+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
class ledyamdev
2+
{
3+
// Documentación en https://learn.microsoft.com/es-es/dotnet/csharp/
4+
5+
// Comentario de una linea
6+
7+
/* Comentario
8+
de
9+
varias
10+
líneas */
11+
12+
static void Main(string[] args)
13+
{
14+
// Declaración de variables
15+
string lenguaje = "C#";
16+
// Constante
17+
const double GRAVEDAD = 9.8;
18+
19+
// Tipos de datos primitivos
20+
int entero = 1;
21+
double decimal = 2.5;
22+
char caracter = 'l';
23+
string cadena = "HELLO";
24+
bool booleano = true;
25+
26+
// Imprimir por pantalla
27+
Console.WriteLine($"Hola {lenguaje}");
28+
Console.WriteLine("El valor de la variable es: " + entero);
29+
Console.WriteLine($"El valor del caracter es: {caracter}");
30+
}
31+
}
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
// Author: Abraham Raies https://github.com/abrahamraies
2+
3+
/*
4+
* EJERCICIO:
5+
* 1. Crea un comentario en el código y coloca la URL del sitio web oficial del
6+
* lenguaje de programación que has seleccionado.
7+
* 2. Representa las diferentes sintaxis que existen de crear comentarios
8+
* en el lenguaje (en una línea, varias...).
9+
* 3. Crea una variable (y una constante si el lenguaje lo soporta).
10+
* 4. Crea variables representando todos los tipos de datos primitivos
11+
* del lenguaje (cadenas de texto, enteros, booleanos...).
12+
* 5. Imprime por terminal el texto: "¡Hola, [y el nombre de tu lenguaje]!"
13+
*/
14+
15+
using System;
16+
17+
// Ejercicio 1:
18+
19+
// Sitio oficial de C#: https://dotnet.microsoft.com/en-us/languages/csharp
20+
21+
// Ejercicio 2:
22+
23+
// Comentario de una sola linea en C#
24+
25+
/*
26+
Comentario
27+
de
28+
varias
29+
lineas
30+
*/
31+
32+
/// Comentario utilizado para describir un metodo
33+
/// se pueden agregar variables para describir su funcion
34+
/// el retorno del metodo
35+
/// y los posibles errores.
36+
37+
38+
// Ejercicio 3:
39+
40+
var variable = 2;
41+
42+
const constante = 10;
43+
44+
// Ejercicio 4:
45+
46+
// Enteros(int)
47+
48+
int intNumber = 20;
49+
50+
// Numero de punto flotante(float)
51+
52+
// 32 bits
53+
float floatNumber32Bits = 5.14f;
54+
55+
// 64 bits
56+
double doubleNumber = 3.14;
57+
58+
long longNumber = 3.2342;
59+
60+
// Decimal
61+
decimal decimalNumber = 10.3;
62+
63+
// Cadena de texto (String)
64+
65+
string stringText = "Esto es un String";
66+
67+
// Caracter
68+
69+
char charText = 'C';
70+
71+
// Booleanos (bool)
72+
73+
bool booleanTrue = true;
74+
bool booleanFalse = false;
75+
76+
// Ejercicio 5:
77+
78+
class abrahamraies
79+
{
80+
static void Main(string[] args)
81+
{
82+
string lenguaje = "C#";
83+
Console.WriteLine($"¡Hola, {lenguaje}!");
84+
}
85+
}
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
// Create by Nicolas Tapia -> https://www.github.com/nicolastapiasanz
2+
3+
// EXERCISE #00
4+
5+
// URL: https://learn.microsoft.com/es-es/dotnet/csharp/
6+
7+
// One Line Comment
8+
9+
/*
10+
* Multiple
11+
* lines
12+
* comment 1
13+
*/
14+
15+
/// Multiple
16+
/// lines
17+
/// comment 2
18+
19+
int foo = 1;
20+
var varFoo = 1;
21+
const int constantFoo = 2;
22+
23+
bool booleanFoo = false;
24+
byte byteFoo = 1;
25+
sbyte sbyteFoo = 1;
26+
short shortByteFoo = 1;
27+
ushort ushortFoo = 1;
28+
int intFoo = -1;
29+
uint uintFoo = 1;
30+
ulong ulongFoo = 1;
31+
float floatFoo = 1.0f;
32+
double doubleFoo = 1.0;
33+
decimal decimalFoo = 1;
34+
char charFoo = 'a';
35+
string stringFoo = "C#";
36+
object objectFoo = 1;
37+
dynamic dynamicFoo = 1;
38+
39+
System.Console.WriteLine($"Hola, {stringFoo}");
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
// Sitio Oficial de C++: https://isocpp.org/
2+
3+
// Esto es un comentario de una línea
4+
5+
/* Y esto es un comentario
6+
de varias líneas. */
7+
8+
// librería estandar de entrada y salida por terminal
9+
#include <iostream>
10+
11+
// librería estandar de cadenas de texto
12+
#include <string>
13+
14+
int main() {
15+
// una variable
16+
auto variable{101};
17+
18+
// una constante
19+
const auto constante{42};
20+
21+
// un valor constante en tiempo de compilación
22+
constexpr auto PI{3.141592653589};
23+
24+
// booleano
25+
bool booleano{true};
26+
27+
// numeros con signo
28+
short s{32767};
29+
int i{2147483647};
30+
long long l{9223372036854775807LL};
31+
32+
float f{9.8F};
33+
double d{6.02E23};
34+
long double ld{1.000000000000001L};
35+
36+
// numeros sin signo
37+
unsigned short us{65535U};
38+
unsigned int ui{4294967295U};
39+
unsigned long long ull{18446744073709551615ULL};
40+
41+
// caracteres
42+
char c{'C'};
43+
44+
// cadena de texto (definida en <string>)
45+
std::string mensaje{"Hola, C++!"};
46+
47+
// para enviar variables a la salida de la terminal
48+
std::cout << mensaje;
49+
50+
return EXIT_SUCCESS;
51+
}

0 commit comments

Comments
 (0)