clevis.czSiemensMania | WMmania | VySemNesmite | SiemensMania na Facebooku
EnglishČesky
SiemensMania has a brand new forum
  SiemensMania    Fórum

   Off-line verze  TESTY  Náhradní díly  Podpořte SM  

ÚVOD FÓRUM CHAT
:: View topic - Benchmark v MobileC
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   Skupiny uživatelůSkupiny uživatelů   ProfileProfile   ChatChat   Log in to check your private messagesLog in to check your private messages 
 BankBank   LotteryLottery   User ShopsUser Shops   ShopsShops 

Benchmark v MobileC

 
Reply to topic     Forum Index -> Java hry a aplikace
View previous topic :: View next topic  
Author Message
witiko
rozumbrada
rozumbrada

Joined: 25 Aug 2005
Posts: 349

1261.00 SMM
PostPosted: Sun Jul 16, 2006 6:18 pm    Post subject: Benchmark v MobileC Reply with quote

Pokud máte program MobileC, tak je pro vás jako stvořený můj benchmark.

Kód:
Code:
int main() {
printf("   Java benchmark\n-----------------\n         1.Test\n0           50        100\n");
sleep(600);
int gr = time(1);
int x = 22;
int y = 0;
printf(" ");
while(y != x)
{y++;
printf(".");}
int gt = time(1);
printf(" 2.Test...");
int w = time(1);
int body = 0;
while (w != time(1)) {} while(time(1)-w != 10)
{body++;}
int i = gt - gr;
int ij = 9 - i;
int j = ij;
printf("   -Hotovo\n-----------------\n1.Test-vypis textu");
if(j >= 5) {printf("\n-----------------\nVysledek: %d bodu\n\n1 a min-desny\n3-prumer\n5- nadprumer\n7 a vic-super\n9- maximum\n\n",j);}
if(j >= 2 && j <= 4) {printf("\n-----------------\nVysledek: %d body\n\n1 a min-desny\n3-prumer\n5- nadprumer\n7 a vic-super\n9- maximum\n\n",j);}
if (j == 1) {printf("\n-----------------\nVysledek: 1 bod\n\n1 a min-desny\n3-prumer\n5- nadprumer\n7 a vic-super\n9- maximum\n\n",j);}
if (j <= 0) {printf("\n-----------------\nVysledek: zadne body (%d)\n\n1 a min-desny\n3-prumer\n5- nadprumer\n7 a vic-super\n9- maximum\n\n",j);}
if ((body-40000)/10000 == 4 || (body-40000)/10000 == 3 || (body-40000)/10000 == 2) {printf("-----------------\n2.Test-zapis do operacni pameti\n-----------------\nVysledek: %d body\n\n1 a mene- hruza\n2-prumer\n5- nadprumer\n9 a vice- super\n\n-----------------\n",(body-40000)/10000);}
else {if ((body-40000)/10000 == 1) {printf("-----------------\n2.Test-zapis promenne\n-----------------\nVysledek: %d bod\n\n1 a mene- hruza\n2-prumer\n5- nadprumer\n9 a vice- super\n\n-----------------\n",(body-40000)/10000);}
else{printf("-----------------\n2.Test-zapis promenne\n-----------------\nVysledek: %d bodu\n\n1 a mene- hruza\n2-prumer\n5- nadprumer\n9 a vice- super\n\n-----------------\n",(body-40000)/10000);}}
int t1 = 0;
int t2 = 0;
if (j <= 2)
{t1++;}
if (j == 3 || j == 4)
{t1++;t1++;}
if (j == 5 || j == 6)
{t1++;t1++;t1++;}
if (j >= 7)
{t1++;t1++;t1++;t1++;}
int bod = (body-40000)/10000;
if (bod <= 1)
{t2++;}
if (bod == 2 || bod == 3 || bod == 4)
{t2++;t2++;}
if (bod == 5 || bod == 6 || bod == 7 || bod == 8)
{t2++;t2++;t2++;}
if (body == 9)
{t2++;t2++;t2++;t2++;}
int t3 = t2;
int t4 = t3+t1;
if(t4 == 2 || t4 == 3){printf("Celkem: 1/4 Podprumer");}
if(t4 == 4 || t4 == 5){printf("Celkem: 2/4 Prumer");}
if(t4 == 6 || t4 == 7){printf("Celkem: 3/4 Nadprumer");}
if(t4 >= 8){printf("Celkem: 4/4 SUPER!");}
printf("\n-----------------\n");
printf("    Witiko ");
putchar(169);
printf(" 2006\n\n       ");}


Uložte si TENTO soubor do mobilu do složky 0:/Text, nebo prostě Texty. Zapněte Mobile C, dejte Program-Možnosti-Otevřít(nebo něco v tom smyslu) Tam zadejte 0:/Text/test.mbc -OK-Možnosti-Spustit

_________________
Siemens není špatný, to jen Benq je zlý!
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Reply to topic     Forum Index -> Java hry a aplikace All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum



Powered by phpBB © phpBB Group