pkè non và?
- Giggione
- .:: 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à?
#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);
}
#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);
}
- Giggione
- .:: 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à?
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
- Furbetta91
- Colonnello Comandante

- Messaggi: 8729
- Iscritto il: 13 ago 2007, 18:10
- .::giggino92::.
- .:: Tenente ::.

- Messaggi: 1196
- Iscritto il: 17 feb 2007, 15:49
- Località: GaLLuCCiO's beach::.
- Furbetta91
- Colonnello Comandante

- Messaggi: 8729
- Iscritto il: 13 ago 2007, 18:10
- Antonella92
- Maggior Generale

- Messaggi: 16810
- Iscritto il: 04 ott 2006, 19:45
Re: pkè non và?
»иσι«..ѕємρяє ¢σѕì..
ღ..νι αмσ..ღ

*ℓє мιgℓισяι αмι¢ιzιє нαииσ ∂єι тєяяєиι ιиєѕρℓσяαтι ¢нє иσи ѕι ∂ιѕѕσ∂αиσ мαι
ღ..νι αмσ..ღ

*ℓє мιgℓισяι αмι¢ιzιє нαииσ ∂єι тєяяєиι ιиєѕρℓσяαтι ¢нє иσи ѕι ∂ιѕѕσ∂αиσ мαι
- fred55
- .:: Generale ::.

- Messaggi: 42650
- Iscritto il: 04 ott 2007, 16:41
- Località: Nel paese delle meraviglie
Re: pkè non và?
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


- a regin e rio de gescal
- Tenente Generale

- Messaggi: 23223
- Iscritto il: 20 nov 2007, 19:14
- Località: ιℓ мισ яєgησ!!яισ ∂є gєѕ¢αℓ..
Re: pkè non và?
mitt a primm e vutt.....vir ch part
................................::Cιяαѕeℓℓα!★::.
...........................................' Dσℓ¢є ¢σмє ιℓ мιєℓє !_
............................Pєяƒєттα ηєℓℓα мια ιмρєяƒєzισηє
................................šємρℓι¢ємєηтє ριккσℓα šтєℓℓα šєηzα ¢ιєℓσ
Uη υσмσ ρυσ ιη∂σššαяє ¢ισ кє νυσℓє мα яєšтєяà šмρ υη α¢¢єššσяισ ∂єℓℓα ∂σηηα
...........................................' Dσℓ¢є ¢σмє ιℓ мιєℓє !_
............................Pєяƒєттα ηєℓℓα мια ιмρєяƒєzισηє
................................šємρℓι¢ємєηтє ριккσℓα šтєℓℓα šєηzα ¢ιєℓσ
Uη υσмσ ρυσ ιη∂σššαяє ¢ισ кє νυσℓє мα яєšтєяà šмρ υη α¢¢єššσяισ ∂єℓℓα ∂σηηα
- FREDDY KRUGHER
- Colonnello Comandante

- Messaggi: 9837
- Iscritto il: 01 gen 2008, 18:12
- Località: a casa mj
Re: pkè non và?
:94: :94: :94:
- Giggione
- .:: 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à?
romantico88 ha scritto:programma in htmlAntonella92 ha scritto:![]()
ma ke è???
sapientoni non è affatto html.....
è linguaggio C
volevo sapere il pkè non funziona
- a regin e rio de gescal
- Tenente Generale

- Messaggi: 23223
- Iscritto il: 20 nov 2007, 19:14
- Località: ιℓ мισ яєgησ!!яισ ∂є gєѕ¢αℓ..
Re: pkè non và?
................................::Cιяαѕeℓℓα!★::.
...........................................' Dσℓ¢є ¢σмє ιℓ мιєℓє !_
............................Pєяƒєттα ηєℓℓα мια ιмρєяƒєzισηє
................................šємρℓι¢ємєηтє ριккσℓα šтєℓℓα šєηzα ¢ιєℓσ
Uη υσмσ ρυσ ιη∂σššαяє ¢ισ кє νυσℓє мα яєšтєяà šмρ υη α¢¢єššσяισ ∂єℓℓα ∂σηηα
...........................................' Dσℓ¢є ¢σмє ιℓ мιєℓє !_
............................Pєяƒєттα ηєℓℓα мια ιмρєяƒєzισηє
................................šємρℓι¢ємєηтє ριккσℓα šтєℓℓα šєηzα ¢ιєℓσ
Uη υσмσ ρυσ ιη∂σššαяє ¢ισ кє νυσℓє мα яєšтєяà šмρ υη α¢¢єššσяισ ∂єℓℓα ∂σηηα
- FREDDY KRUGHER
- Colonnello Comandante

- Messaggi: 9837
- Iscritto il: 01 gen 2008, 18:12
- Località: a casa mj
- a regin e rio de gescal
- Tenente Generale

- Messaggi: 23223
- Iscritto il: 20 nov 2007, 19:14
- Località: ιℓ мισ яєgησ!!яισ ∂є gєѕ¢αℓ..
Re: pkè non và?
cu giggione!!!!canematto ha scritto:regina la stai avendo con me ??
................................::Cιяαѕeℓℓα!★::.
...........................................' Dσℓ¢є ¢σмє ιℓ мιєℓє !_
............................Pєяƒєттα ηєℓℓα мια ιмρєяƒєzισηє
................................šємρℓι¢ємєηтє ριккσℓα šтєℓℓα šєηzα ¢ιєℓσ
Uη υσмσ ρυσ ιη∂σššαяє ¢ισ кє νυσℓє мα яєšтєяà šмρ υη α¢¢єššσяισ ∂єℓℓα ∂σηηα
...........................................' Dσℓ¢є ¢σмє ιℓ мιєℓє !_
............................Pєяƒєттα ηєℓℓα мια ιмρєяƒєzισηє
................................šємρℓι¢ємєηтє ριккσℓα šтєℓℓα šєηzα ¢ιєℓσ
Uη υσмσ ρυσ ιη∂σššαяє ¢ισ кє νυσℓє мα яєšтєяà šмρ υη α¢¢єššσяισ ∂єℓℓα ∂σηηα
- the madness
- .:: LuogoTenente ::.

- Messaggi: 700
- Iscritto il: 25 mar 2008, 20:36
- Località: cimitile
- Dj Mr Hahn
- Brigadier Generale

- Messaggi: 11529
- Iscritto il: 09 feb 2008, 15:01
- Località: -»*иσℓα вєα¢н*«-
- Chester-Shinoda
- .:: LuogoTenente ::.

- Messaggi: 568
- Iscritto il: 21 feb 2008, 21:24
- Località: PiZzOnE!!
-
Jarabe
- Tenente Generale

- Messaggi: 24809
- Iscritto il: 10 ott 2006, 22:01
- Località: ѕαи gιOѕєρρє
- Contatta:
Re: pkè non và?
Al posto dell tergreigeriugefibgnwuoi..c vuole snfdsirjoe
- tonyx-92
- Maggior Generale

- Messaggi: 16699
- Iscritto il: 03 giu 2007, 16:39
- Località: ..::*Hollywood*::..
Re: pkè non và?
xk si strunz 
• Vινσ ℓα мια νιтα 1/4 ∂ι мιgℓισ αℓℓα νσℓтα..иσи м'ιмρσятα ∂ι иιєит'αℓтяσ..ρєя qυєι 10 ѕєкσи∂ι ѕσиσ ℓιвєяσ!!


- Giggione
- .:: 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à?
a regin e rio de gescal ha scritto:aropp tutt stu tiemp t ven a ment???ric a vrità,nun putiv rurmì!!!!
![]()
eh...a vist?
- tonyx-92
- Maggior Generale

- Messaggi: 16699
- Iscritto il: 03 giu 2007, 16:39
- Località: ..::*Hollywood*::..
Re: pkè non và?
o pulp o tien a kap e tavl a rummenk
• Vινσ ℓα мια νιтα 1/4 ∂ι мιgℓισ αℓℓα νσℓтα..иσи м'ιмρσятα ∂ι иιєит'αℓтяσ..ρєя qυєι 10 ѕєкσи∂ι ѕσиσ ℓιвєяσ!!


- FREDDY KRUGHER
- Colonnello Comandante

- Messaggi: 9837
- Iscritto il: 01 gen 2008, 18:12
- Località: a casa mj
-
Jarabe
- Tenente Generale

- Messaggi: 24809
- Iscritto il: 10 ott 2006, 22:01
- Località: ѕαи gιOѕєρρє
- Contatta:
Re: pkè non và?
Ma vatt a ciriell



