Advertisement
Guest User

Untitled

a guest
Apr 19th, 2014
41
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. struct node
  2. {
  3. int data;
  4. node* next;//node IS what is being defined
  5. };
  6.  
  7. class Link {
  8. public int data1;
  9. public double data2;
  10. public Link nextLink;
  11.  
  12. //Link constructor
  13. public Link(int d1, double d2) {
  14. data1 = d1;
  15. data2 = d2;
  16. }
  17.  
  18. //Print Link data
  19. public void printLink() {
  20. System.out.print("{" + data1 + ", " + data2 + "} ");
  21. }
  22.  
  23. struct X{
  24. X* y;
  25. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement