View Single Post
Old 13-08-2007, 08:44   #2
xbubbax
Senior Member
 
Iscritto dal: Apr 2007
Messaggi: 381
Ho corretto qualcosa
Codice HTML:
#include <stdio.h>
struct nodo{
            int data;
            struct nodo *next}
int main(){
    
           typedef struct nodo LISTA;
           typedef struct nodo *L_PTR;
           
           
           
           
           
           
           
int conta_cifre(l_PTR L){
                         if(L->data!=NULL){ 
                         if((L->data>='0')&&(L->data<=9)){
                                                            return L->data + conto_cifre(L->next);}
                                                            else return conto_cifre(L1->next);}
                                                            else return 0;}
xbubbax è offline   Rispondi citando il messaggio o parte di esso