#ifndef FUNCTIONS_GET_SET_H_INCLUDED
#define FUNCTIONS_GET_SET_H_INCLUDED

int symb(mains p) {
    return p->symb;
}

//-----------------------------

int num(mains p) {
    return p->num;
}

//-----------------------------

mains adress(mains p) {
    return p->next;
}

//-----------------------------

void affectSymb(mains p, int x) {
    p->symb = x;
}

//-----------------------------

void affectNum(mains p, int x) {
    p->num = x;
}

//-----------------------------

void affectAdress(mains p, mains adress) {
    p->next = adress;
}

#endif // FUNCTIONS_GET_SET_H_INCLUDED

Last edited Jan 28, 2012 at 11:03 AM by JooS, version 3

Comments

No comments yet.