I have a class that has some struct types defined publicy:
Code:
//.h file
struct foo
{
int a;
string b;
char c;
};
void test(int a, foo f1);
Now in the .cpp file, I want to to have a function take a parameter as a type of that struct;
Code:
foo f1;
void test(int a, f1);
what is the correct way to pass and access this by reference:
test(1, &f1)
...
test(....)
{
*ft.a = 1;
}

no!

I am confused as to how pointers, the * and & operators and everything works with objects.
Can someone point me to a good tutorial or give me a simple snippet please?

thx.