This file contains 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
/******************** | |
* Exemplo desenvolvido por Luiz Felipe | |
* Link do vídeo: https://youtu.be/wUrk9AK6ItY | |
********************/ | |
#include <stdio.h> | |
char keyboard[BUFSIZ]; | |
int main(){ |
This file contains 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
/******************** | |
* Exemplo desenvolvido por Luiz Felipe | |
* Link do vídeo: https://youtu.be/wUrk9AK6ItY | |
********************/ | |
#include <stdio.h> | |
char keyboard[BUFSIZ]; | |
void getinput(char *buff, int size); |
This file contains 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
/******************** | |
* Resolução para o problema: https://www.urionlinejudge.com.br/judge/pt/problems/view/1026 | |
* Por Luiz Felipe - https://github.com/Silva97 | |
********************/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
char* utostr(char *str, unsigned int n); | |
char output[BUFSIZ]; |
This file contains 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
/******************** | |
* Exemplo de cálculo matemático de divisão e multiplicação | |
* feito com soma e subtração. | |
* | |
* Por Luiz Felipe - https://github.com/Silva97 | |
********************/ | |
#include <stdio.h> | |
#define PRECISION 1000000 |
This file contains 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
/******************** | |
* Exemplo básico de uso de sockets no Linux. | |
* Por Luiz Felipe - https://github.com/Silva97 | |
* | |
* Link do vídeo: https://youtu.be/GaxjJvMnz-I | |
********************/ | |
#include <stdio.h> | |
#include <unistd.h> |
This file contains 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
/******************** | |
* Exemplo básico de uso de sockets no Linux. | |
* Por Luiz Felipe - https://github.com/Silva97 | |
* | |
* Link do vídeo: https://youtu.be/GaxjJvMnz-I | |
********************/ | |
#include <stdio.h> | |
#include <winsock2.h> |
This file contains 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
/******************** | |
* Exemplo por Luiz Felipe. | |
* https://github.com/Silva97 | |
********************/ | |
#include <stdio.h> | |
#include <string.h> | |
#include <unistd.h> // Para usar chdir() | |
#include <dirent.h> |
This file contains 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
/******************** | |
* Exemplo por Luiz Felipe | |
* https://github.com/Silva97 | |
********************/ | |
#include <stdio.h> | |
#include <unistd.h> | |
#define FNAME "exemplo.dat" |
This file contains 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
/******************** | |
* Desenvolvido por Luiz Felipe | |
* https://github.com/Silva97 | |
* | |
* Algoritmo feito em resolução de um desafio | |
* cujo o objetivo era apresentar o menor número | |
* de persistência indicada pelo usuário. | |
* | |
* Desafio no grupo Programação em C: | |
* - https://www.facebook.com/groups/414761988665865/permalink/1144414109033979/ |
This file contains 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 <stdio.h> | |
#define MAX_STACK 64 | |
typedef struct stack { | |
int value[MAX_STACK]; | |
int size; | |
} Stack; | |
void push(Stack *s, int value); |
OlderNewer