A
asit
why the following code does not compile at line 14
#include <iostream>
#include <cstdlib>
using namespace std;
struct One
{
void funct1()
{
cout<<"Testing..."<<endl;
}
};
void funct2( const One& c) //line 14
{
c.funct1();
}
int main()
{
One b;
funct2(b);
return 0;
}
#include <iostream>
#include <cstdlib>
using namespace std;
struct One
{
void funct1()
{
cout<<"Testing..."<<endl;
}
};
void funct2( const One& c) //line 14
{
c.funct1();
}
int main()
{
One b;
funct2(b);
return 0;
}