Hi all,
Tell me why C doesnt have Nested Function?
Please reply me....
Tell me why C doesnt have Nested Function?
Please reply me....
class Demo{
private:
double* data;
int size;
bool Randomize();
public:
Demo();
~Demo();
int GetSize( void );
bool SetSize( int );
double GetData( int );
bool SetData( int , double );
};
bool Demo::Randomize( void )
{
for( int i=0; i < size ; i++ )
{
data[i] = (double) rand() / (double) RAND_MAX;
}
return true;
}
Comment