Mod: Segundo aviso, los códigos van en etiquetas GeSHi
//error me dice controlador no valido
#include <iostream>
#include <conio.h>
#include <cstdlib>
#include <stdlib.h>
#include <stdio.h>
using namespace std;
struct nodo{
int nro;
struct nodo*sig;
};
typedef struct nodo *apilar *desapilar;
void push(int valor, apilar & tope)
{
aux=new(struct nodo)
aux->nro=valor;
aux->sig=tope;
tope=aux;
}
void pop(int valor, desapilar & tope)
{
(struct nodo)new=aux;
nro=valor->aux;
sig=tope->aux;
aux=tope;
}
int main()
{
int p;
int NULL;
int dato;
apilar *p;
p=NULL;
push(dato,p)
p->NULL;
return 0;
}
Tienes conceptos muy vagos de cómo programar, lo que necesitas es estudiar: http://c.conclase.net/?id=descargas
Empieza por ahí