Apuntadores?

Akasha
13 de Abril del 2005
Si alguno conoce el manejo de apuntadores en un programa, porfa envienme alguna breve explicacion o programa claro sobre el tema, o alguna página en Internet donde pueda guiarme.Gracias.

Juan Carlos
13 de Abril del 2005
Te recomiendo este tutorial, a mi me sirvio mucho
http://usuarios.lycos.es/tervenet/TUTORIALES/pointersC.pdf

angoz
13 de Abril del 2005
Este programa te puede ayudar....

Listas enlazadas en c++
#include <conio.h>
#include <iostream.h>

struct lista
{
int num;
lista *sig;
};

lista *inicio = NULL, *nuevo = NULL, *aux = NULL;

void Inserta( int );
void Muestra( );

void main( )
{
int numero;
char otro;

do{
clrscr( );
cout << "Inserta numero a la lista: ";
cin >> numero;
Inserta( numero );
cout <<"nnOtro(sn): ";
cin >> otro;
}while( otro == 's' || otro == 'S' );

cout << "Tu lista es: "<< endl << endl;
Muestra( );
getch( );
}

void Inserta( int x )
{
if( inicio == NULL )
{
inicio = new lista;
inicio -> sig = NULL;
inicio -> num = x;
aux = inicio;
}

else
{
nuevo = new lista;
nuevo -> num = x;
nuevo -> sig = NULL;
aux -> sig = nuevo;
aux = nuevo;
}
}

void Muestra( )
{
aux = inicio;
clrscr( );
while( aux != NULL )
{
cout << aux -> num << " ";
aux = aux -> sig;
}
}