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> | |
void getNumbers(int vet[],int n); | |
int maxDiff(int vet[],int n); | |
int main(){ | |
int number,result; | |
do{ | |
scanf("%d",&number); | |
}while(number<1); |
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> | |
#include <string.h> | |
#include <stdlib.h> | |
void swap(char *x, char *y){ | |
char temp; | |
temp = *x; | |
*x = *y; | |
*y = temp; | |
} |
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> | |
void binary(int array[]){ | |
int n,i,j,a; | |
i=0; | |
scanf("%d",&n);fflush(stdin); | |
if(n<8){ | |
printf("0\n"); | |
}else if(n==8){ | |
printf("1\n"); | |
} |
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> | |
#include <conio.h> | |
#include <string.h> | |
#include <ctype.h> | |
void lerPlaca(char placa[]); | |
void validaPlaca(char placa[]); | |
void isnum(char caracter); | |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<conio.h> | |
#include<ctype.h> | |
#define tam 11 | |
void preencher(char vet[]); | |
void digito1(char vet[], int primeiro[], int *verificador); | |
void digito2(char vet[], int segundo[], int *verificador2); | |
int valida(char vet[], int a, int b); |
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> | |
#include<ctype.h> | |
#include<stdlib.h> | |
#include<time.h> | |
#define nome 40 | |
#define tam 3 | |
void jogo(char nome1[],char nome2[],int primeiro); | |
void mapa(char mat[][tam]); | |
void jogadores(); |
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> | |
#include<time.h> | |
#include<stdlib.h> | |
void geraSenha(int tam); | |
int main(){ | |
int tam; | |
printf("Digite o tamanho: "); | |
scanf("%d",&tam); | |
geraSenha(tam); | |
} |
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
import os | |
for a, b, c in os.walk(os.getcwd()): | |
for file in c: | |
print(os.path.join(file, a)) |
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
char * home = get_home_enviroment(); // /home/USER/ | |
char * desktop = get_desktop_enviroment(home); // /home/USER/Desktop/ | |
char * username = get_username(); USERNAME | |
char * trash = get_trash_path(home); // /home/USER/.local/share/Trash/ | |
char * media = get_media_path(username); |
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
/* If finds a file, append to the linked list */ | |
if(ent->d_type == 8){ // it's a file | |
while(ext != NULL){ // check file extension | |
if(strcmp(get_filename_ext(path_to_file), ext) == 0){ | |
append(files, path_to_file, NULL, NULL); | |
break; | |
} | |
ext = strtok(NULL, " "); |
OlderNewer