hi, can someone please tell me why this won't compile? errors are improper typedef 'test', statment mising ; and expression syntax. thanks so much
Code:#include <iostream.h>
#define tab '\t'
struct test{
char name;
int value;
};
ostream& operator<<(ostream& oput, test& t)
{
oput<<t.name<<tab;
oput<<t.value<<tab<<endl;
return(oput);
};
main()
{
test try={"a",1};
cout<<try;
return(0);
}