Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct node
- {
- int data;
- node* next;//node IS what is being defined
- };
- class Link {
- public int data1;
- public double data2;
- public Link nextLink;
- //Link constructor
- public Link(int d1, double d2) {
- data1 = d1;
- data2 = d2;
- }
- //Print Link data
- public void printLink() {
- System.out.print("{" + data1 + ", " + data2 + "} ");
- }
- struct X{
- X* y;
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement