Hi, I want to create a pointer of a struct in a function, func, which is in my main.cpp. The struct is a private member of class Foo, but the function, func, is a friend of class Foo. So I have no trouble getting states directly from Foo. But I just can't create a struct.
I in function im trying like, (say struct name is item)