c++ why my code is not working i am working with pointer references using classes it is asking me a function defination is not allowed plz told me where i am wrong**
#include <iostream>
using namespace std;
struct bigone
{
int semo;
char text[1000];
} bo = {'123', 'This is a big structue'};
//Three functions that have a parameters
void valfunc(bigone v1); //call by value
void ptrfunc(const bigone *p1); //call by pointer
void reffunc(const bigone &r1); //call by reference
void main()
{
{
valfunc(bo); //passing the varible itself
ptrfunc(&bo); //passing adresss of a variable
reffunc(bo);
} //passing the reference of a variable
//functions definations
//pass by value
void valfunc(bigone v1)
{
cout << '\n'
<< v1.semo;
cout << '\n'
<< v1.text;
}
//pass by pointer
void ptrfunc(const bigone *p1)
{
cout << '\n'
<< p1 >
semo;
cout << '\n'
<< p1 >
text;
}
//call by reference
void reffunc(const bigone &r1)
{
cout << '\n'
<< r1.serno; // Reference notation
cout << '\n'
<< r1.text;
}
}