๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #3538

Re: listas en C

#3538
From: Felipe Jara S.
Date: Sun, 19 Dec 2004 19:49
27 lines
1577 bytes
typedef struct molde{
    int info;
    struct molde *link;
}nodo

nodo p,q;
De esta forma defines a nodo como un nuevo tipo de variable y creas las 
variables p y q.

Saludos!

"+mArkO+" <kitim@porta.com> escribi๏ฟฝ en el mensaje 
news:cq1la5$odc$1@news1.nivel5.cl...
> como se hace la declaracion de la estructura siguiente para el lenguaje C
>
> type nodo=^dato_nodo;
>       dato_nodo=record;
>                    info:integer;
>                    link:nodo;
>        end;
>
> var inicio,p,q;
>
> este esta hecho en pascal, ahora kiero aprender como se hace pero en C
> he buscado algunos ejemplos pero no me ha kedado muy claro.
>
> 
Technical Details
Message-ID: <cq4lrl$4hr$1@news1.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mail
References: <cq1la5$odc$1@news1.nivel5.cl>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,eea4573eafa2bb6c
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!nntp-server.pubsub.com!news1.nivel5.cl!not-for-mail
From: "Felipe Jara S." <nex84SAQUEN@ESTOvtr.net>
Newsgroups: chile.comp.programacion
Subject: Re: listas en C
Date: Sun, 19 Dec 2004 16:49:01 -0300
Organization: Varios
Lines: 29
Message-ID: <cq4lrl$4hr$1@news1.nivel5.cl>
References: <cq1la5$odc$1@news1.nivel5.cl>
NNTP-Posting-Host: 200.104.137.111
X-Trace: news1.nivel5.cl 1103485621 4667 200.104.137.111 (19 Dec 2004 19:47:01 GMT)
X-Complaints-To: news@news1.nivel5.cl
NNTP-Posting-Date: Sun, 19 Dec 2004 19:47:01 +0000 (UTC)
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original