Skip to content

Instantly share code, notes, and snippets.

Arthur Xavier arthurxavierx

Block or report user

Report or block arthurxavierx

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View SketchSystems.spec
Xpenses&
Current view
home -> Home
budget -> Budget
distribution -> Distribution
statistics -> Statistics
Home*
new expense -> New expense
Budget
@arthurxavierx
arthurxavierx / registros.c
Created Jun 6, 2013
Lista de exercícios 8 - Registros
View registros.c
typedef struct PONTO {
float x, y;
} PONTO;
void atribuiValorPonto(PONTO* p, float a, float b) {
p->x = a;
p->y = b;
}
float dist(PONTO* p1, PONTO* p2) {
return sqrt(pow(p1.x - p2.x, 2) - pow(p1.y - p2.y, 2));
@arthurxavierx
arthurxavierx / matriz.c
Created May 23, 2013
Lista de exercícios 7 - Matriz
View matriz.c
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#define SIZE 3
float media_matriz(int n, float a[][SIZE]) {
float m = 0.0f;
size_t i;
for(i = 0; i < n*SIZE; i++)
@arthurxavierx
arthurxavierx / sudoku.c
Last active Dec 17, 2015
Sudoku verifier
View sudoku.c
/**
* sudoku.c
* @author Arthur Xavier <arthur.xavierx@gmail.com>
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
int main() {
size_t i, j;
@arthurxavierx
arthurxavierx / dfs.c
Created May 22, 2013
Algoritmo de Busca em Profundidade em um grafo. Encontra um vértice em um labirinto e o caminho até este.
View dfs.c
/** dfs.c
* @author Arthur Xavier <arthur.xavierx@gmail.com>
* @usage
* $ gcc dfs.c
* $ ./a.out < maze1.txt
*/
#include <stdio.h>
#include <stdlib.h>
/**
You can’t perform that action at this time.