C++
Christofer Karatzinis
chka at net-cs.ucd.ie
Wed Nov 26 17:39:56 EET 1997
>
> Exw mia erwtisi sxetika me C. Ginetai na ftiaxw enan pinaka o
> opoios na einai metablitos stin synexeia tou programmatos? P.x. Exw ena
> arxeio me n eggrafes kai 8a i8ela na pairnei olo to arxeio kai na to
> topo8etei stin mnhmh (gia taxinomhsh). Mhn mou peite lyseis toy style:
> Anoixe ena arxeio apo ton arxi kai tetoia blepe singular. Pantws stin
> Turbo c to kanw (nomizw!) me procedure i opoia exei public metablites to
> pli8os twv eggrafwn enos arxeiou. Telos pantwn den einai dynaton na to
> kanei i basic kai i ka8e basic kai na mhn to kanei i C. Mhn me kanete na
> xasw to stoixhma.
>
Bre, min skeutese pascaloidws H' basic-oidws... H megalyteri anakalypsi
meta to linux pou egine s'auton ton planiti einai oi pointers. Ftiakse
enan pointer stin structure pou exei auto to file, bale tis egrafes ekei
mesa kai auto einai olo.
px:
read_file()
{
struct blah *koko;
while (END_OF_FILE)
{
koko=(struct blah)malloc(merika ekatomyria);
koko->blah = read(from file);
koko++;
}
}
Kati tetoio (kala, einai poly oiktro to paradeigma.... alla auti einai i
diadikasia pou akolou0oume stin C)
Christofer
--
====================================================================
Gia na mathete pos na xrisimopoiite ton majordomo, stilte e-mail
sto "majordomo at argos.hol.gr" me 1 grammi sto keimeno: help
Ta archives tis listas einai sto http://www.argos.hol.gr/lists
Gia opoiodipote problima stilte e-mail ston owner-linux-greek-users
====================================================================
More information about the Linux-greek-users
mailing list