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
name: Build project | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [closed] | |
jobs: | |
buildForWebGL: [...] | |
uploadToFTP: | |
name: Upload to FTP | |
runs-on: ubuntu-latest |
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
void parcial(Auto* arreglo, int longitud) { | |
int antiguedades[longitud]; | |
int anioActual = 2021; | |
int promedioAntiguedades = 0; | |
for(int i = 0; i < longitud; i++) { | |
antiguedades[i] = anioActual - arreglo[i].anio; | |
promedioAntiguedades = promedioAntiguedades + antiguedades[i]; | |
} | |
printf(promedioAntiguedades) |
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
name: Build project | |
on: | |
workflow_dispatch: | |
jobs: | |
buildForWebGL: | |
name: Build for WebGL | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: |
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
name: Build project | |
on: | |
workflow_dispatch: | |
jobs: | |
buildForWebGL: | |
name: Build for WebGL | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
steps: |
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
name: Build project | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [closed] | |
jobs: | |
buildForWebGL: | |
name: Build for WebGL | |
runs-on: ubuntu-latest | |
strategy: |
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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
public class Tamagotchi : MonoBehaviour | |
{ | |
// El estomago de nuestra mascota | |
public float stomach = 100; | |
// La vida social de nuestra mascota |
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
// TP 2 - MO2D | |
// | |
#include <iostream> // cout | |
#include <cstdlib> // exit | |
#include <cmath> // fabs | |
#include <GL/glut.h> | |
#include "Teclado.h" | |
#include "uglyfont.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
void GameManager::printHighscores() { | |
clrscr(); | |
gotoxy(5, 2); | |
textcolor(10); | |
cout << "GAME OVER!" << endl; | |
cout << "Score is: "<< formation->getScore(); | |
Score* highScores[5]; | |
scoreManager->getHighScores(highScores); |
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
class Score{ | |
public: | |
Score() {}; | |
char name[10]; | |
int score; | |
}; |
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 "ScoreManager.h" | |
#include <fstream> | |
#include <iostream> | |
#include <cstring> | |
using namespace std; | |
ScoreManager::ScoreManager(){ | |
} | |
void ScoreManager::getHighScores(Score* highScores[5]){ |