thanks for your reply Laserlight, i am not going to do any kind of job. I am a student and one of my friend asked me that if it is possible to assign any value to data but without making any methods...
Type: Posts; User: luckyali444
thanks for your reply Laserlight, i am not going to do any kind of job. I am a student and one of my friend asked me that if it is possible to assign any value to data but without making any methods...
Below is my code. What i want to do is to assign a value to variable data. I'm not allowed to write any method in the public area of XYZ class. But a pointer to an object of XYZ class is allowed...
Hi there.
I have made two classes. Below is Node Class.
class Node
{
public:
int id;
char name[20];
Node *Next;