1)How do u access functions that are within structures and make them return a value to not the main but to another (void) function ? ( Dunno if qn is phrase is correctly ??)
2)Below is an excerpt from a vending machine program in C++ but how do u convert to C without using :

the scope resolution operator) ? or Is the below program unable to be converted to C...
BTW: some reasoning of the program may be wrong especially the data inside Convert_to_Denom as this part is wat me coded moiself...^^;;
Mani Thks for all who readin tis
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<ctype.h>
struct coins{
int denomination;
void setDenom(int);
int getDenom();
};
struct machine{
struct coins ten, twenty, fifty;
};
void Convert_to_Denom(struct machine *m);
main()
{
struct machine *mac;
Convert_to_Denom(&mac);
return 0;
}
void Convert_to_Denom(struct machine *m)
{
m->fifty.setDenom(50);
m->twenty.setDenom(20);
m->ten.setDenom(10);
printf("%d",m->fifty.getDenom());
printf("%d",m->twenty.getDenom());
printf("%d",m->ten.getDenom());
}
void coins::setDenom(int D)
{
denomination = D;
}
int coins::getDenom()
{
return denomination;
}