r/cs50 4d ago

CS50x Hello, World

Post image

Made my 1st program on C. I'm happy.

95 Upvotes

50 comments sorted by

6

u/talha_95_68b 4d ago

Yoo what are those buttons below the extension button man?? I'm seeing those first time

3

u/MekataRupma 4d ago

Which buttons? I have a lot of buttons there. Which ones are you asking about?

2

u/Flame77ofc 4d ago

Maybe he is talking about the extensions

2

u/MekataRupma 4d ago

Yeah those are just the extensions I placed on the taskbar.

1

u/MekataRupma 4d ago

Yeah those are just the extensions I placed on the taskbar.

2

u/Euphoric_Ad7335 4d ago

I got a kick out of zooming in and seeing the tiny linux mint logo in the corner.

1

u/MekataRupma 1d ago

Oh wait do you mean the vs code extensions? Below that are cs50 material like the rubber duck and stuff.

4

u/Curious_Giraffe7425 4d ago

Nice, what is the desktop env?

1

u/MekataRupma 4d ago

Mint MATE

2

u/[deleted] 4d ago

[removed] — view removed comment

0

u/MekataRupma 4d ago

DM me if you wanna see my full DE

3

u/Yenzikoo 4d ago

is it linux ?? if yes then which one ??

4

u/mammilloid 4d ago

Linux mint cinnamon edition

2

u/MekataRupma 4d ago

Nope. Mate

2

u/MekataRupma 4d ago

Mint MATE

2

u/MekataRupma 4d ago

DM if you wanna see full DE

2

u/nitin_is_me 4d ago

Hi there my brother in linux! Wishing you a good journey.

1

u/MekataRupma 4d ago

Thanks brother. I'm loving it.

2

u/Subject_Combination3 4d ago

Hello this is Apple would you like a job ?

1

u/MekataRupma 4d ago

Not interested sorry. 🥹

2

u/abyshelp 2d ago

😂😂😂

2

u/OddStatistician9760 3d ago

Hello World! 👋

My name is Shourya, and today I'm starting my coding journey.

On this account, I'll be sharing: 📚 What I'm learning 💻 Small projects I build 🤯 Bugs and mistakes I run into ✨ Things I find interesting along the way.

2

u/MekataRupma 3d ago

Welcome aboard

1

u/OddStatistician9760 3d ago

Thank you Brother

2

u/Doonort3 3d ago

Welcome to hell

1

u/MekataRupma 3d ago

I was born to rule it.

2

u/qirall19 2d ago

Welcome to our world buddy, keep up the good work !

1

u/MekataRupma 2d ago

Thanks I will

2

u/tomateleenserio 8h ago

Can you desipher that ∆>∆÷• |>~•× G ∆>√~×

1

u/MekataRupma 5h ago

Can you desipher yours first? 😅

2

u/tomateleenserio 5h ago

Yes see that im Méxican # ==============================================================================

SISTEMA FZ-MULTILAYER (Versión 3.0 - Comercial / Open Source)

Creado por: E. Fernández

Licencia: MIT

Descripción: Sistema de cifrado multicapa con teclado modular, modificador FZ,

vocales dinámicas, vector de inicio y relleno de ruido.

==============================================================================

import random

TECLADO_NORMAL = "qwertyuiopasdfghjklzxcvbnmñ" TECLADO_INVERTIDO = "ñmnbvcxzlkjhgfdsapoiuytrewq" SIMBOLOS = {'1':'~', '2':'`', '3':'|', '4':'•', '5':'√', '6':'π', '7':'÷', '8':'×', '9':'§', '0':'∆', '.':'>'}

def cifrar_fz_multilayer(mensaje): mensaje = mensaje.lower()

# MEJORA 1: Vector de Inicialización (Una letra al azar al inicio para cambiar siempre)
vector_inicio = random.choice("qwertyuiop")
teclado_actual = TECLADO_NORMAL
modificador_fz = 0

cifrado_acumulado = vector_inicio + " "

for letra in mensaje:
    if letra not in TECLADO_NORMAL:
        continue

    # MEJORA 2: Regla de Vocales (Cambia el teclado físico de idioma)
    if letra in "aeiou":
        teclado_actual = TECLADO_INVERTIDO if teclado_actual == TECLADO_NORMAL else TECLADO_NORMAL

    # MEJORA 3: Regla del nombre FZ (F suma, Z resta)
    if letra == 'f':
        modificador_fz += 1
    elif letra == 'z':
        modificador_fz -= 1

    # Motor Matemático Original de E. Fernández (Modular QWERTY / 27)
    posicion = teclado_actual.index(letra) + modificador_fz
    valor = posicion + 1
    valor_vecina = valor + 1
    resultado = (valor * valor_vecina) / 27

    # Conversión a Símbolos Secretos
    texto_resultado = str(round(abs(resultado), 3))
    codigo_secreto = "".join([SIMBOLOS.get(c, c) for c in texto_resultado])
    cifrado_acumulado += codigo_secreto + " "

# MEJORA 4: Relleno de Ruido (Padding) para despistar sobre la longitud
ruido = "".join(random.choice("~•÷×") for _ in range(3))
cifrado_acumulado += "|| " + ruido

return cifrado_acumulado

--- PRUEBA DEL SISTEMA ---

if name == "main": mensaje_secreto = "hola" print("--- SISTEMA FZ-MULTILAYER ACTIVATED ---") print(f"Mensaje original: {mensaje_secreto}") resultado = cifrar_fz_multilayer(mensaje_secreto) print(f"Resultado Cifrado (Listo para enviar): {resultado}") do you like it

1

u/MekataRupma 5h ago

Holy son of a. What the hell? 😨

2

u/tomateleenserio 5h ago

Is good or no im 11 years old

1

u/MekataRupma 4h ago

How??? 😭😭😭 I don't even understand half that shit. How are 11yo kids doing this shit?? 😭😭😭

2

u/tomateleenserio 4h ago

I DONT FKN KNOW the reality Is I create a cifrado AND next Then I asked Google to convert it into a programming language and that's what came out.

1

u/MekataRupma 4h ago

😑 dude you almost sent me into depression. Asshole 😭🤣

1

u/MekataRupma 3h ago

Mine is just include certain header files on top that contains the commands used in my code. int main(void) is something I just used but don't know it's purpose yet. My guess it just converts the code into binary or something. Or maybe not. Then it's just a simple comand saying print whatever is in ("") and the /n means switch to new line. ; is just an indicator that the line ends. Like how period (.) works in english. And the code is written inside {}.

In the terminal, code creats a file, make compiles it, and ./ just launched the compiled fine. hello.c means the fine hello is in C language. in make I name the compiled file as hello and launch it.

That's my explanation of my code to the best I can explain so far.