[Cours officiel]cours pascal
+3
Dalas
AirCool
men1n2
7 participants
Page 4 sur 5 • 1, 2, 3, 4, 5
Re: [Cours officiel]cours pascal
fel fonction 9bal el end zidcharrouka a écrit:yaa lghalta mta3 runtime tna77ét ki baddalt ettaille éma dima i9olli la chaine n'existe po ma3néha ghalta fel prog??
chercher:=test;
nouri1204- Illuminé Flooder
-
Nombre de messages : 11976
Age : 35
Localisation : partout mais pas n'importe ou
Emploi/loisirs : tennis
Réputation : 2
Points : 19994
Date d'inscription : 25/08/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:ya5i lbourse feha 7a9 le9raya wellogement wmasarifou(mé 4aw...) w billets..? ma3néha enti né9sekkén ur pocket money lel mékla wellebs c ça?? wellogement fi diar wala foyer?
lè billet aller retour mech teba3 el bourse, ama l bourse 800euro fiha 7a99 esokna (fi foyer) wel mekla wel masrouf, w zid y9ossou menha el sécurité sociale je crois
ama l'inscription mana3rach yna7iwha mel bourse wallè
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
nouri1204 a écrit:fel fonction 9bal el end zidcharrouka a écrit:yaa lghalta mta3 runtime tna77ét ki baddalt ettaille éma dima i9olli la chaine n'existe po ma3néha ghalta fel prog??
chercher:=test;
ena fe9t biha 9bal
xD
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
enty tayara 3leya 3ad xDhachoola a écrit:nouri1204 a écrit:fel fonction 9bal el end zidcharrouka a écrit:yaa lghalta mta3 runtime tna77ét ki baddalt ettaille éma dima i9olli la chaine n'existe po ma3néha ghalta fel prog??
chercher:=test;
ena fe9t biha 9bal
xD
nouri1204- Illuminé Flooder
-
Nombre de messages : 11976
Age : 35
Localisation : partout mais pas n'importe ou
Emploi/loisirs : tennis
Réputation : 2
Points : 19994
Date d'inscription : 25/08/2007
Re: [Cours officiel]cours pascal
ouais t'as raison hachoola!! mé bé9i ma yemshish bess7i7
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
kahaw normalement ma3ash fama 7atta ghalta!!
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
yo4horli yelzem 3onsor théleth bsh ifi9 bel moshkla xD
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
nouri1204 a écrit:enty tayara 3leya 3ad xDhachoola a écrit:nouri1204 a écrit:fel fonction 9bal el end zidcharrouka a écrit:yaa lghalta mta3 runtime tna77ét ki baddalt ettaille éma dima i9olli la chaine n'existe po ma3néha ghalta fel prog??
chercher:=test;
ena fe9t biha 9bal
xD
fe9t biha 9ablek b une minute
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:ouais t'as raison hachoola!! mé bé9i ma yemshish bess7i7
be5la bech nsobb el pascal xD
chnia el mochkla zeda?
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
i9olli dima la chaine n'existe pas 7atta ki tabda mawjouda :/hachoola a écrit:charrouka a écrit:ouais t'as raison hachoola!! mé bé9i ma yemshish bess7i7
be5la bech nsobb el pascal xD
chnia el mochkla zeda?
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:i9olli dima la chaine n'existe pas 7atta ki tabda mawjouda :/hachoola a écrit:charrouka a écrit:ouais t'as raison hachoola!! mé bé9i ma yemshish bess7i7
be5la bech nsobb el pascal xD
chnia el mochkla zeda?
esma3 fil fonction chercher ista3mel variable booléenne locale o5ra, pour éviter les problèmes
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
voilà le prog bess7i7 akel begin wel end ma3raftesh n7ott'hom wallé mé ds les 2 cas l'exécution msh s7iA, dima la chaine n'existe pas :/
program recherche;
uses wincrt;
type tab= array[1..20] of string;
var
t: tab;
test: boolean;
n: integer;
ch: string;
Procedure saisir(var t:tab;var n: integer;var ch: string);
var i: integer;
begin
repeat
writeln('n= ');
readln(n);
until n>0;
for i:=1 to n do begin
writeln('saisir l''élément num ',i);
readln(t[i]);
end;
writeln('saisir la chaine à chercher ');
readln(ch);
end;
procedure afficher(test: boolean);
begin
if (test= true) then writeln('la chaine n''existe pas')
else writeln('la chaine est trouvée');
end;
function chercher(t:tab;n:integer;ch: string):boolean;
var j: integer;
begin
j:=0;
test:=false;
repeat {begin}
j:=j+1;
if (t[j]= ch) then test:= true;
{end;}
until (test= true) or (j=n);
chercher:= test;
end;
Begin
saisir(t,n,ch);
test:= chercher(t,n,ch);
afficher(test);
end.
program recherche;
uses wincrt;
type tab= array[1..20] of string;
var
t: tab;
test: boolean;
n: integer;
ch: string;
Procedure saisir(var t:tab;var n: integer;var ch: string);
var i: integer;
begin
repeat
writeln('n= ');
readln(n);
until n>0;
for i:=1 to n do begin
writeln('saisir l''élément num ',i);
readln(t[i]);
end;
writeln('saisir la chaine à chercher ');
readln(ch);
end;
procedure afficher(test: boolean);
begin
if (test= true) then writeln('la chaine n''existe pas')
else writeln('la chaine est trouvée');
end;
function chercher(t:tab;n:integer;ch: string):boolean;
var j: integer;
begin
j:=0;
test:=false;
repeat {begin}
j:=j+1;
if (t[j]= ch) then test:= true;
{end;}
until (test= true) or (j=n);
chercher:= test;
end;
Begin
saisir(t,n,ch);
test:= chercher(t,n,ch);
afficher(test);
end.
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:voilà le prog bess7i7 akel begin wel end ma3raftesh n7ott'hom wallé mé ds les 2 cas l'exécution msh s7iA, dima la chaine n'existe pas :/
program recherche;
uses wincrt;
type tab= array[1..20] of string;
var
t: tab;
test: boolean;
n: integer;
ch: string;
Procedure saisir(var t:tab;var n: integer;var ch: string);
var i: integer;
begin
repeat
writeln('n= ');
readln(n);
until n>0;
for i:=1 to n do begin
writeln('saisir l''élément num ',i);
readln(t[i]);
end;
writeln('saisir la chaine à chercher ');
readln(ch);
end;
procedure afficher(test: boolean);
begin
if (test= true) then writeln('la chaine n''existe pas')
else writeln('la chaine est trouvée');
end;
function chercher(t:tab;n:integer;ch: string):boolean;
var j: integer;
begin
j:=0;
test:=false;
repeat {begin}
j:=j+1;
if (t[j]= ch) then test:= true;
{end;}
until (test= true) or (j=n);
chercher:= test;
end;
Begin
saisir(t,n,ch);
test:= chercher(t,n,ch);
afficher(test);
end.
el begin wel end zeydine, 9otlek baddel el variable test fil fonction roddha variable locale
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
na3téha esm é5er w ndeclaréha fil var ta3 lfunction?
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
berasmi el variable test mahech 3amltelha declarationhachoola a écrit:charrouka a écrit:voilà le prog bess7i7 akel begin wel end ma3raftesh n7ott'hom wallé mé ds les 2 cas l'exécution msh s7iA, dima la chaine n'existe pas :/
program recherche;
uses wincrt;
type tab= array[1..20] of string;
var
t: tab;
test: boolean;
n: integer;
ch: string;
Procedure saisir(var t:tab;var n: integer;var ch: string);
var i: integer;
begin
repeat
writeln('n= ');
readln(n);
until n>0;
for i:=1 to n do begin
writeln('saisir l''élément num ',i);
readln(t[i]);
end;
writeln('saisir la chaine à chercher ');
readln(ch);
end;
procedure afficher(test: boolean);
begin
if (test= true) then writeln('la chaine n''existe pas')
else writeln('la chaine est trouvée');
end;
function chercher(t:tab;n:integer;ch: string):boolean;
var j: integer;
begin
j:=0;
test:=false;
repeat {begin}
j:=j+1;
if (t[j]= ch) then test:= true;
{end;}
until (test= true) or (j=n);
chercher:= test;
end;
Begin
saisir(t,n,ch);
test:= chercher(t,n,ch);
afficher(test);
end.
el begin wel end zeydine, 9otlek baddel el variable test fil fonction roddha variable locale
nouri1204- Illuminé Flooder
-
Nombre de messages : 11976
Age : 35
Localisation : partout mais pas n'importe ou
Emploi/loisirs : tennis
Réputation : 2
Points : 19994
Date d'inscription : 25/08/2007
Re: [Cours officiel]cours pascal
shouf doub lpartie ta3 lfunction pisk lé5er s7i7, hakka sava??
program recherche;
uses wincrt;
type tab= array[1..20] of string;
var
t: tab;
test: boolean;
n: integer;
ch: string;
Procedure saisir(var t:tab;var n: integer;var ch: string);
var i: integer;
begin
repeat
writeln('n= ');
readln(n);
until n>0;
for i:=1 to n do begin
writeln('saisir l''élément num ',i);
readln(t[i]);
end;
writeln('saisir la chaine à chercher ');
readln(ch);
end;
procedure afficher(test: boolean);
begin
if (test= true) then writeln('la chaine n''existe pas')
else writeln('la chaine est trouvée');
end;
function chercher(t:tab;n:integer;ch: string):boolean;
var j: integer;
dec: boolean;
begin
j:=0;
dec:= false;
repeat
j:=j+1;
if (t[j]= ch) then dec:= true;
until (dec= true) or (j=n);
chercher:= dec;
end;
Begin
saisir(t,n,ch);
test:= chercher(t,n,ch);
afficher(test);
end.
program recherche;
uses wincrt;
type tab= array[1..20] of string;
var
t: tab;
test: boolean;
n: integer;
ch: string;
Procedure saisir(var t:tab;var n: integer;var ch: string);
var i: integer;
begin
repeat
writeln('n= ');
readln(n);
until n>0;
for i:=1 to n do begin
writeln('saisir l''élément num ',i);
readln(t[i]);
end;
writeln('saisir la chaine à chercher ');
readln(ch);
end;
procedure afficher(test: boolean);
begin
if (test= true) then writeln('la chaine n''existe pas')
else writeln('la chaine est trouvée');
end;
function chercher(t:tab;n:integer;ch: string):boolean;
var j: integer;
dec: boolean;
begin
j:=0;
dec:= false;
repeat
j:=j+1;
if (t[j]= ch) then dec:= true;
until (dec= true) or (j=n);
chercher:= dec;
end;
Begin
saisir(t,n,ch);
test:= chercher(t,n,ch);
afficher(test);
end.
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
il suffi bsh ndéclaréha fel P.Principal, mé hachoola a voulu juste éviter les problèmes de confusion des variables..nouri1204 a écrit:berasmi el variable test mahech 3amltelha declarationhachoola a écrit:[
el begin wel end zeydine, 9otlek baddel el variable test fil fonction roddha variable locale
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:shouf doub lpartie ta3 lfunction pisk lé5er s7i7, hakka sava??
program recherche;
uses wincrt;
type tab= array[1..20] of string;
var
t: tab;
test: boolean;
n: integer;
ch: string;
Procedure saisir(var t:tab;var n: integer;var ch: string);
var i: integer;
begin
repeat
writeln('n= ');
readln(n);
until n>0;
for i:=1 to n do begin
writeln('saisir l''élément num ',i);
readln(t[i]);
end;
writeln('saisir la chaine à chercher ');
readln(ch);
end;
procedure afficher(test: boolean);
begin
if (test= true) then writeln('la chaine n''existe pas')
else writeln('la chaine est trouvée');
end;
function chercher(t:tab;n:integer;ch: string):boolean;
var j: integer;
dec: boolean;
begin
j:=0;
dec:= false;
repeat
j:=j+1;
if (t[j]= ch) then dec:= true;
until (dec= true) or (j=n);
chercher:= dec;
end;
Begin
saisir(t,n,ch);
test:= chercher(t,n,ch);
afficher(test);
end.
ay, w çava 5dém?
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
Exécutéééééééééééééééééééé
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
ya hachoome ya douda
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
reb7ettek almania w 5esrettek tounes xD
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:ya hachoome ya douda
? xD
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
enty madem 5demt beha fel fonction lezem edeclareha fel fonction 7ekeyet nafs lesm 7keya okhra 5ater fel fonction elle est déclarée comme locale donc matchoufha ken el fonctioncharrouka a écrit:il suffi bsh ndéclaréha fel P.Principal, mé hachoola a voulu juste éviter les problèmes de confusion des variables..nouri1204 a écrit:berasmi el variable test mahech 3amltelha declarationhachoola a écrit:[
el begin wel end zeydine, 9otlek baddel el variable test fil fonction roddha variable locale
nouri1204- Illuminé Flooder
-
Nombre de messages : 11976
Age : 35
Localisation : partout mais pas n'importe ou
Emploi/loisirs : tennis
Réputation : 2
Points : 19994
Date d'inscription : 25/08/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:reb7ettek almania w 5esrettek tounes xD
nchallah narja3 ba3d ma nkammel na9ra
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
ya5i msh ki tabda 7aja déclarée fel en-tete ta3 lfunction yezzi? ahayka déclarée ba3d les (...): boolean; shnya lmoshkla?nouri1204 a écrit:enty madem 5demt beha fel fonction lezem edeclareha fel fonction 7ekeyet nafs lesm 7keya okhra 5ater fel fonction elle est déclarée comme locale donc matchoufha ken el fonctioncharrouka a écrit:il suffi bsh ndéclaréha fel P.Principal, mé hachoola a voulu juste éviter les problèmes de confusion des variables..nouri1204 a écrit:berasmi el variable test mahech 3amltelha declarationhachoola a écrit:[
el begin wel end zeydine, 9otlek baddel el variable test fil fonction roddha variable locale
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
zéyed m3ak ma3néhahachoola a écrit:charrouka a écrit:ya hachoome ya douda
? xD
9Adésh t7eb n5allsek bsh tsala7li ghlati fel pascal? xD
charrouka- NoLife Flooder
- Nombre de messages : 8506
Age : 103
Localisation : fi e7da majarrat al kaoun
Réputation : 1
Points : 15864
Date d'inscription : 11/12/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:ya5i msh ki tabda 7aja déclarée fel en-tete ta3 lfunction yezzi? ahayka déclarée ba3d les (...): boolean; shnya lmoshkla?nouri1204 a écrit:enty madem 5demt beha fel fonction lezem edeclareha fel fonction 7ekeyet nafs lesm 7keya okhra 5ater fel fonction elle est déclarée comme locale donc matchoufha ken el fonctioncharrouka a écrit:il suffi bsh ndéclaréha fel P.Principal, mé hachoola a voulu juste éviter les problèmes de confusion des variables..nouri1204 a écrit:berasmi el variable test mahech 3amltelha declarationhachoola a écrit:[
el begin wel end zeydine, 9otlek baddel el variable test fil fonction roddha variable locale
ey ki tabda 7aja déclarée fil programme principal ynajmou ychoufouha les modules lkol, 7atta kén mahich déclarée comme variable formelle
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:zéyed m3ak ma3néhahachoola a écrit:charrouka a écrit:ya hachoome ya douda
? xD
9Adésh t7eb n5allsek bsh tsala7li ghlati fel pascal? xD
miselech ataw na3mallek soum
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Re: [Cours officiel]cours pascal
charrouka a écrit:reb7ettek almania w 5esrettek tounes xD
bch tekhdem el tounes au moins 10 snin ( je c pas kif l'IPEST wallé )
AirCool- Docteur Flooder
-
Nombre de messages : 2690
Age : 34
Localisation : fi a9ssa bi9a3 el ardh :p
Réputation : 0
Points : 13485
Date d'inscription : 08/03/2009
Re: [Cours officiel]cours pascal
AirCool a écrit:charrouka a écrit:reb7ettek almania w 5esrettek tounes xD
bch tekhdem el tounes au moins 10 snin ( je c pas kif l'IPEST wallé )
lè 3 snine xD
ama 7atta le responsable 9allena rahi 7keya fergha, ma3morhom matab9ouh xD
hachoola- Magistere Flooder
-
Nombre de messages : 1608
Age : 32
Emploi/loisirs : video games
Réputation : -3
Points : 13463
Date d'inscription : 25/11/2007
Page 4 sur 5 • 1, 2, 3, 4, 5
Permission de ce forum:
Vous ne pouvez pas répondre aux sujets dans ce forum
|
|