pkè non và?

Avatar utente
Giggione
.:: Tenente ::.
.:: Tenente ::.
Messaggi: 1121
Iscritto il: 21 ott 2006, 20:58
Località: Si...MyPSPCf: 3.90 M33-2 MemoryStick: Sony 4GB PsPBrik: 2 PsPSbrik: 7 PsPModificate:64

pkè non và?

Messaggio da Giggione »

#include <nanodesktop.h>
#include <stdio.h>
#include <stdlib.h>
int wind;
int ndMain ()
{
int MP;
int exit;
char buffer[maxdim];
char x;
int z;
int i;
ndInitSystem ();
MP=ndLP_CreateWindow (10, 10, 400, 200, "Menu' Principale", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (MP);
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "1 Definisci fantacalcio *;");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "2 Cassa ;");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "3 Scontri ;");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "4 Crediti ;");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "5 Esci .");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " ");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "\t Nota: Le impostazioni segnati con *");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " vanno chiamate solo al primo avvio!");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " ");
ndHAL_Delay ( 5.0 );
do{
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " Scegli in numero dell'opzione da eseguire..");
exit=0;
i=0;
while (!exit)
{
fread (&x, -1, -1, stdin);
if (x!='\n')
{
buffer =x; // Salva il carattere ricevuto nel buffer
i++;
}
else // Hai premuto ENTER. Esci
{
exit=1; // Esce dal ciclo while
ndCloseSystemKeyboard ();
}
}
sscanf(&buffer, "%d", &z);
if (z==1)
{ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 1 Definisci fantacalcio *.");
ndHAL_Delay ( 2.0 );
wind=ndLP_CreateWindow (50, 50, 400, 200, " Definisci fantacalcio *", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (wind);
def();
}
if (z==2)
{ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 2 Cassa .");
ndHAL_Delay ( 2.0 );
wind=ndLP_CreateWindow (50, 50, 300, 200, " Cassa", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (wind);
cassa();
}
if(z==3)
{ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 3 Scontri .");
ndHAL_Delay ( 2.0 );
wind=ndLP_CreateWindow (50, 50, 400, 200, " Scontri", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (wind);
scontri();
}
if(z==4)
{ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 4 Crediti .");
ndHAL_Delay ( 2.0 );
wind=ndLP_CreateWindow (50, 50, 400, 200, " Crediti", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (wind);
crediti();
}
if(z==5)
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 5 Esci .");
if (z>5)
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " ERRORE.!");
}while(z!=5);
}
Avatar utente
Furbetta91
Colonnello Comandante
Colonnello Comandante
Messaggi: 8729
Iscritto il: 13 ago 2007, 18:10

Re: pkè non và?

Messaggio da Furbetta91 »

:roll:
Immagine
Avatar utente
Giggione
.:: Tenente ::.
.:: Tenente ::.
Messaggi: 1121
Iscritto il: 21 ott 2006, 20:58
Località: Si...MyPSPCf: 3.90 M33-2 MemoryStick: Sony 4GB PsPBrik: 2 PsPSbrik: 7 PsPModificate:64

Re: pkè non và?

Messaggio da Giggione »

void def();
void cassa();
void scontri();
void crediti();
.
.
.
.
.
.
void def()
{
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, "Questa funzione è in elaborazione attendi la prossima relase ;)");
ndHAL_Delay ( 5.0 );
ndLP_DestroyWindow (wind);
}
void cassa()
{
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, "Questa funzione è in elaborazione attendi la prossima relase ;)");
ndHAL_Delay ( 5.0 );
ndLP_DestroyWindow (wind);

}
void scontri()
{
int c,i,exit,s=0,f=0;
float z;
char buffer[maxdim];
char x;

ndWS_PrintLn (wind , COLOR_WHITE, RENDER, " Squadra numero 1");
for (c=0;c<11;c++)
{
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, " Inserisci il voto n %d: ",(c+1));
exit=0;
i=0;

while (!exit)
{
fread (&x, -1, -1, stdin);
if (x!='\n')
{
buffer =x; // Salva il carattere ricevuto nel buffer
i++;
}
else // Hai premuto ENTER. Esci
{
exit=1; // Esce dal ciclo while
ndCloseSystemKeyboard ();
}

}
sscanf(&buffer, "%f", &z);

ndWS_PrintLn (wind , COLOR_WHITE, RENDER, " %f",z);
s=s+z;
}
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, " Squadra numero 2");
for (c=0;c<11;c++)
{
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, " Inserisci il voto n %d: ",(c+1));
exit=0;
i=0;

while (!exit)
{
fread (&x, -1, -1, stdin);
if (x!='\n')
{
buffer =x; // Salva il carattere ricevuto nel buffer
i++;
}
else // Hai premuto ENTER. Esci
{
exit=1; // Esce dal ciclo while
ndCloseSystemKeyboard ();
}

}
sscanf(&buffer, "%f", &z);

ndWS_PrintLn (wind , COLOR_WHITE, RENDER, " %f",z);
f=f+z;
}
if(s>f)
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, " Vince la squadra numero 1");
else
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, " Vince la squadra numero 2" );

}
void crediti()
{
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, "Copiright Aspx.");
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, "Tutti i diritti riservati.");
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, " ");
ndWS_PrintLn (wind , COLOR_WHITE, RENDER, "Uno speciale ringraziamente per la realizzazione di questo programma va a Pegasus 2000 non ci sarei mai riuscito senza la sua assistenza ");
ndHAL_Delay ( 7.0 );
ndLP_DestroyWindow (wind);
}


qst sono le relative funzioni
Avatar utente
Furbetta91
Colonnello Comandante
Colonnello Comandante
Messaggi: 8729
Iscritto il: 13 ago 2007, 18:10

Re: pkè non và?

Messaggio da Furbetta91 »

:roll: ... :lol: :lol: :lol:
Immagine
Avatar utente
.::giggino92::.
.:: Tenente ::.
.:: Tenente ::.
Messaggi: 1196
Iscritto il: 17 feb 2007, 15:49
Località: GaLLuCCiO's beach::.

Re: pkè non và?

Messaggio da .::giggino92::. »

:shock: :roll: :arrow: :-|
giggino.92@hotmail.it E BAST!!!!!!!!diffidate dalle imitazioni...
Avatar utente
Furbetta91
Colonnello Comandante
Colonnello Comandante
Messaggi: 8729
Iscritto il: 13 ago 2007, 18:10

Re: pkè non và?

Messaggio da Furbetta91 »

Furbetta91 ha scritto::roll: ... :lol: :lol: :lol:
Immagine
Avatar utente
Antonella92
Maggior Generale
Maggior Generale
Messaggi: 16810
Iscritto il: 04 ott 2006, 19:45

Re: pkè non và?

Messaggio da Antonella92 »

:shock: :shock: ma ke è???
»иσι«..ѕємρяє ¢σѕì..
ღ..νι αмσ..ღ

Immagine

*ℓє мιgℓισяι αмι¢ιzιє нαииσ ∂єι тєяяєиι ιиєѕρℓσяαтι ¢нє иσи ѕι ∂ιѕѕσ∂αиσ мαι
Avatar utente
fred55
.:: Generale ::.
.:: Generale ::.
Messaggi: 42650
Iscritto il: 04 ott 2007, 16:41
Località: Nel paese delle meraviglie

Re: pkè non và?

Messaggio da fred55 »

Giggione ha scritto:#include <nanodesktop.h>
#include <stdio.h>
#include <stdlib.h>
int wind;
int ndMain ()
{
int MP;
int exit;
char buffer[maxdim];
char x;
int z;
int i;
ndInitSystem ();
MP=ndLP_CreateWindow (10, 10, 400, 200, "Menu' Principale", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (MP);
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "1 Definisci fantacalcio *;");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "2 Cassa ;");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "3 Scontri ;");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "4 Crediti ;");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "5 Esci .");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " ");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, "\t Nota: Le impostazioni segnati con *");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " vanno chiamate solo al primo avvio!");
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " ");
ndHAL_Delay ( 5.0 );
do{
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " Scegli in numero dell'opzione da eseguire..");
exit=0;
i=0;
while (!exit)
{
fread (&x, -1, -1, stdin);
if (x!='\n')
{
buffer =x; // Salva il carattere ricevuto nel buffer
i++;
}
else // Hai premuto ENTER. Esci
{
exit=1; // Esce dal ciclo while
ndCloseSystemKeyboard ();
}
}
sscanf(&buffer, "%d", &z);
if (z==1)
{ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 1 Definisci fantacalcio *.");
ndHAL_Delay ( 2.0 );
wind=ndLP_CreateWindow (50, 50, 400, 200, " Definisci fantacalcio *", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (wind);
def();
}
if (z==2)
{ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 2 Cassa .");
ndHAL_Delay ( 2.0 );
wind=ndLP_CreateWindow (50, 50, 300, 200, " Cassa", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (wind);
cassa();
}
if(z==3)
{ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 3 Scontri .");
ndHAL_Delay ( 2.0 );
wind=ndLP_CreateWindow (50, 50, 400, 200, " Scontri", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (wind);
scontri();
}
if(z==4)
{ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 4 Crediti .");
ndHAL_Delay ( 2.0 );
wind=ndLP_CreateWindow (50, 50, 400, 200, " Crediti", COLOR_WHITE, COLOR_BLUE,
COLOR_BLACK, COLOR_WHITE, 0);
ndLP_MaximizeWindow (wind);
crediti();
}
if(z==5)
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " 5 Esci .");
if (z>5)
ndWS_PrintLn (MP , COLOR_WHITE, RENDER, " ERRORE.!");
}while(z!=5);
}

xkè è disabilitato l html nel forum :???:
Non vi infastidirò mai e giammai vi creerò dei problemi se non sarete voi dapprima a farlo a me,un animo buono ma maledettamente ribelle! by fred


Immagine
Avatar utente
a regin e rio de gescal
Tenente Generale
Tenente Generale
Messaggi: 23223
Iscritto il: 20 nov 2007, 19:14
Località: ιℓ мισ яєgησ!!яισ ∂є gєѕ¢αℓ..

Re: pkè non và?

Messaggio da a regin e rio de gescal »

mitt a primm e vutt.....vir ch part :lol: :lol:
................................::Cιяαѕeℓℓα!★::.

...........................................' Dσℓ¢є ¢σмє ιℓ мιєℓє !_


............................Pєяƒєттα ηєℓℓα мια ιмρєяƒєzισηє

................................šємρℓι¢ємєηтє ριккσℓα šтєℓℓα šєηzα ¢ιєℓσ

Uη υσмσ ρυσ ιη∂σššαяє ¢ισ кє νυσℓє мα яєšтєяà šмρ υη α¢¢єššσяισ ∂єℓℓα ∂σηηα
Avatar utente
FREDDY KRUGHER
Colonnello Comandante
Colonnello Comandante
Messaggi: 9837
Iscritto il: 01 gen 2008, 18:12
Località: a casa mj

Re: pkè non và?

Messaggio da FREDDY KRUGHER »

:94: :94: :94:
Avatar utente
Giggione
.:: Tenente ::.
.:: Tenente ::.
Messaggi: 1121
Iscritto il: 21 ott 2006, 20:58
Località: Si...MyPSPCf: 3.90 M33-2 MemoryStick: Sony 4GB PsPBrik: 2 PsPSbrik: 7 PsPModificate:64

Re: pkè non và?

Messaggio da Giggione »

romantico88 ha scritto:
Antonella92 ha scritto::shock: :shock: ma ke è???
programma in html

sapientoni non è affatto html.....
è linguaggio C
volevo sapere il pkè non funziona
Avatar utente
Giggione
.:: Tenente ::.
.:: Tenente ::.
Messaggi: 1121
Iscritto il: 21 ott 2006, 20:58
Località: Si...MyPSPCf: 3.90 M33-2 MemoryStick: Sony 4GB PsPBrik: 2 PsPSbrik: 7 PsPModificate:64

Re: pkè non và?

Messaggio da Giggione »

a regin e rio de gescal ha scritto:mitt a primm e vutt.....vir ch part :lol: :lol:

:shock: :shock: :shock:
Avatar utente
a regin e rio de gescal
Tenente Generale
Tenente Generale
Messaggi: 23223
Iscritto il: 20 nov 2007, 19:14
Località: ιℓ мισ яєgησ!!яισ ∂є gєѕ¢αℓ..

Re: pkè non và?

Messaggio da a regin e rio de gescal »

:shock: aropp tutt stu tiemp t ven a ment???ric a vrità,nun putiv rurmì!!!! :lol:
................................::Cιяαѕeℓℓα!★::.

...........................................' Dσℓ¢є ¢σмє ιℓ мιєℓє !_


............................Pєяƒєттα ηєℓℓα мια ιмρєяƒєzισηє

................................šємρℓι¢ємєηтє ριккσℓα šтєℓℓα šєηzα ¢ιєℓσ

Uη υσмσ ρυσ ιη∂σššαяє ¢ισ кє νυσℓє мα яєšтєяà šмρ υη α¢¢єššσяισ ∂єℓℓα ∂σηηα
Avatar utente
FREDDY KRUGHER
Colonnello Comandante
Colonnello Comandante
Messaggi: 9837
Iscritto il: 01 gen 2008, 18:12
Località: a casa mj

Re: pkè non và?

Messaggio da FREDDY KRUGHER »

:lol: :lol: :lol:
Avatar utente
a regin e rio de gescal
Tenente Generale
Tenente Generale
Messaggi: 23223
Iscritto il: 20 nov 2007, 19:14
Località: ιℓ мισ яєgησ!!яισ ∂є gєѕ¢αℓ..

Re: pkè non và?

Messaggio da a regin e rio de gescal »

canematto ha scritto:regina la stai avendo con me ??
cu giggione!!!! :grin:
................................::Cιяαѕeℓℓα!★::.

...........................................' Dσℓ¢є ¢σмє ιℓ мιєℓє !_


............................Pєяƒєттα ηєℓℓα мια ιмρєяƒєzισηє

................................šємρℓι¢ємєηтє ριккσℓα šтєℓℓα šєηzα ¢ιєℓσ

Uη υσмσ ρυσ ιη∂σššαяє ¢ισ кє νυσℓє мα яєšтєяà šмρ υη α¢¢єššσяισ ∂єℓℓα ∂σηηα
Avatar utente
the madness
.:: LuogoTenente ::.
.:: LuogoTenente ::.
Messaggi: 700
Iscritto il: 25 mar 2008, 20:36
Località: cimitile

Re: pkè non và?

Messaggio da the madness »

:lol: :lol:
Ti v&do 4cc&ll€rato.....RilLa§sAti

Immagine
Avatar utente
Dj Mr Hahn
Brigadier Generale
Brigadier Generale
Messaggi: 11529
Iscritto il: 09 feb 2008, 15:01
Località: -»*иσℓα вєα¢н*«-

Re: pkè non và?

Messaggio da Dj Mr Hahn »

:roll: :roll: :roll:
Immagine


[G]IUƧΣPPΣ
Avatar utente
Chester-Shinoda
.:: LuogoTenente ::.
.:: LuogoTenente ::.
Messaggi: 568
Iscritto il: 21 feb 2008, 21:24
Località: PiZzOnE!!

Re: pkè non và?

Messaggio da Chester-Shinoda »

;-) :roll:
*«¤´¯`¤»°_SeNzA StReSs_°«¤´¯`¤*

Immagine
Jarabe
Tenente Generale
Tenente Generale
Messaggi: 24809
Iscritto il: 10 ott 2006, 22:01
Località: ѕαи gιOѕєρρє
Contatta:

Re: pkè non và?

Messaggio da Jarabe »

Al posto dell tergreigeriugefibgnwuoi..c vuole snfdsirjoe ;-)
Avatar utente
tonyx-92
Maggior Generale
Maggior Generale
Messaggi: 16699
Iscritto il: 03 giu 2007, 16:39
Località: ..::*Hollywood*::..

Re: pkè non và?

Messaggio da tonyx-92 »

xk si strunz :?:
• Vινσ ℓα мια νιтα 1/4 ∂ι мιgℓισ αℓℓα νσℓтα..иσи м'ιмρσятα ∂ι иιєит'αℓтяσ..ρєя qυєι 10 ѕєкσи∂ι ѕσиσ ℓιвєяσ!!
Immagine
Avatar utente
Giggione
.:: Tenente ::.
.:: Tenente ::.
Messaggi: 1121
Iscritto il: 21 ott 2006, 20:58
Località: Si...MyPSPCf: 3.90 M33-2 MemoryStick: Sony 4GB PsPBrik: 2 PsPSbrik: 7 PsPModificate:64

Re: pkè non và?

Messaggio da Giggione »

a regin e rio de gescal ha scritto: :shock: aropp tutt stu tiemp t ven a ment???ric a vrità,nun putiv rurmì!!!! :lol:

eh...a vist?
Avatar utente
Giggione
.:: Tenente ::.
.:: Tenente ::.
Messaggi: 1121
Iscritto il: 21 ott 2006, 20:58
Località: Si...MyPSPCf: 3.90 M33-2 MemoryStick: Sony 4GB PsPBrik: 2 PsPSbrik: 7 PsPModificate:64

Re: pkè non và?

Messaggio da Giggione »

tonyx-92 ha scritto:xk si strunz :?:

:???: :???: senti da ke pulpito arriva la predica
Avatar utente
tonyx-92
Maggior Generale
Maggior Generale
Messaggi: 16699
Iscritto il: 03 giu 2007, 16:39
Località: ..::*Hollywood*::..

Re: pkè non và?

Messaggio da tonyx-92 »

o pulp o tien a kap e tavl a rummenk
• Vινσ ℓα мια νιтα 1/4 ∂ι мιgℓισ αℓℓα νσℓтα..иσи м'ιмρσятα ∂ι иιєит'αℓтяσ..ρєя qυєι 10 ѕєкσи∂ι ѕσиσ ℓιвєяσ!!
Immagine
Avatar utente
FREDDY KRUGHER
Colonnello Comandante
Colonnello Comandante
Messaggi: 9837
Iscritto il: 01 gen 2008, 18:12
Località: a casa mj

Re: pkè non và?

Messaggio da FREDDY KRUGHER »

:lol: :lol: :lol:
Jarabe
Tenente Generale
Tenente Generale
Messaggi: 24809
Iscritto il: 10 ott 2006, 22:01
Località: ѕαи gιOѕєρρє
Contatta:

Re: pkè non và?

Messaggio da Jarabe »

Ma vatt a ciriell
Rispondi