> struct func(); // prototype
You want the name of the struct as well
struct test func(); // prototype
Or since this is c++, you can simply do
test func(); // prototype
Don't forget to fix the actual function as well
> struct func(); // prototype
You want the name of the struct as well
struct test func(); // prototype
Or since this is c++, you can simply do
test func(); // prototype
Don't forget to fix the actual function as well
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.