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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// Função usada para mostrar o estado do jogo após cada jogada | |
void showGameState(char** gameInfo){ | |
printf("%c |%c |%c |\n", gameInfo[0][0], gameInfo[0][1], gameInfo[0][2]); | |
printf("----+----+-----\n"); |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <time.h> | |
#define M_RAND 846515 | |
#define MAX_RAND 1000 | |
//n_random = (a+m)%b | |
int gera_rand(int a, int m, int b) { | |
return (a+m)%b; |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#include <string.h> | |
int main(){ | |
int *A = (int *) malloc(10 * sizeof(int)); | |
int *B = (int *) malloc(10 * sizeof(int)); | |
int k; | |
scanf("%d", &k); |
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
JFLAGS = -g | |
JC = javac | |
.SUFFIXES: .java .class | |
.java.class: | |
$(JC) $(JFLAGS) $*.java | |
CLASSES = \ | |
Main.java \ |