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
Algoritmo "forca" | |
// Disciplina : Algoritmos | |
// Professor : João Alfredo | |
// Descrição : Programa que simula o jogo da forca. | |
// Autor(a) : Andrey Arthur Sousa e Silva | |
// Data atual : 14/05/2024 | |
Var | |
// Seção de Declarações das variáveis | |
palavra, chute_anterior, chute, letra : caractere | |
e_posicao, foi_usada : logico |
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
// When I was starting to learn Zig, strings were such a pain in the ass, so I | |
// made this little guide for you to understand better what each type of string | |
// does and why some of them seems to be "wrong". | |
// | |
// I will assume that you already know how pointers, const, var, comptime and | |
// the stack works. You don't need to be an expert, but I will not waste time | |
// detailing these concepts. | |
// | |
// Sorry for the English mistakes, I'm far from being a fluent English speaker, | |
// but what counts is the information. |