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
[{ | |
"timestamp": "030320141600", | |
"status": "0" | |
}, { | |
"timestamp": "030320141700", | |
"status": "0" | |
}, { | |
"timestamp": "030320141800", | |
"status": "0" | |
}] |
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
.gradle | |
/local.properties | |
/.idea/workspace.xml | |
.DS_Store |
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
language: java | |
jdk: oraclejdk7 | |
before_install: | |
# required libs for android build tools | |
- sudo apt-get update | |
- sudo apt-get install -qq --force-yes libgd2-xpm ia32-libs ia32-libs-multiarch | |
# for gradle output style | |
- export TERM=dumb |
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
int main(){ | |
float poop; | |
int oct; | |
oct =0x1067; | |
printf("Demo Integers:\n"); | |
printf("Using: 0x1067\n"); | |
printf("As integer: %i\n", oct); | |
printf("As oct: %o\n", oct); | |
printf("As hex: %#x\n", oct); |
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 <math.h> | |
#include <stdlib.h> | |
#include <conio.h> | |
int main(){ | |
int x=1; | |
int y = 1; | |
int i, j, z, nr1, nr2, nr3, nr4; |
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> | |
int main(){ | |
int antallmellom=0, plasser=20, i, j; | |
for(i=1;i<plasser;i++){ | |
antallmellom=plasser-i; | |
for(j=1;j<=antallmellom;j++){ | |
printf(" "); | |
} | |
for(j=1;j<i;j++){ |
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> | |
int main(){ | |
int c; | |
float i=10, fact=1; | |
float e=1; | |
double factone=1; | |
double eone=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 <conio.h> | |
#include <math.h> | |
int main(){ | |
int i = 0; | |
double pi = 1, piresult=0; | |
int pides=1; | |
double faktor=0, pi10desimaler=1, pinew=0, piold=0, pidiff=0; | |
float j =0, stop=0,ipotens=0; |
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 deal(int hand[]){ | |
int deck[52]= { 0 }; | |
int i, verdi; | |
for (i=0;i<5;i++){ | |
verdi = rand() % 52; | |
while(deck[verdi]==1){ | |
verdi = rand() % 52; | |
} | |
hand[i]=verdi; | |
deck[verdi]=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
int isPair(int hand[]){ | |
int i=0,brukteVerdier[13]={0}, antallpar=0, antalltress=0, kort=0; | |
for (i=0;i<5;i++){ | |
kort = hand[i]%13; | |
if(brukteVerdier[kort]==1){ | |
antallpar++; | |
} | |
if(brukteVerdier[kort]==2){ | |
antalltress++; | |
} |
OlderNewer