Visualizzazione dei risultati da 1 a 3 su 3
  1. #1
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    229

    [C] problema con puntatori

    ciao a tutti ho il seguente problema con un puntatore qualcuno sa come risolverlo....



    codice:
    
    static tcb_t tcbtable[10];
    
    typedef unsigned int status_t;			/* thread status */
    typedef unsigned char tid_t;			/* thread identifier */
    typedef struct tcb_t {				/* thread control block */
    	tid_t			tid;		/* thread identifier */
    	status_t		status; 	/* thread's status */
    	struct tcb_t		*t_next,	/* pointer to next entry in the thread queue */
    				*t_prev,	/* pointer to previous entry in the thread queue */
    				*inbox;		/* threads waiting to send a message to this thread */
    	/* other fields will be added during phase2 development */
    } tcb_t;
    
    ......................
    
    while((*t).tid != tcbtable[i].tid){
    			tcbtable[i]=tcbtable[i]->t_next; mi da errore in questo punto.
    			count++;
    		}
    mi da il seguente errore

    p.c: In function ‘freeTcb’:
    p.c:48: error: invalid type argument of ‘->’
    p.c:53: warning: assignment makes integer from pointer without a cast

    ciao a tutti.
    Ad Maiora

  2. #2
    Utente di HTML.it
    Registrato dal
    Jan 2004
    Messaggi
    229
    risolto

    ciao
    Ad Maiora

  3. #3

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.