piotrjanuszek

graf.h

Feb 2nd, 2016
23
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.38 KB | None | 0 0
  1.  
  2. typedef struct tagCon
  3. {
  4.     int cityB;
  5.     int dist;
  6.     char rtype;
  7.     tagCon* next;
  8. }Con;
  9.  
  10. typedef struct tagListHead
  11. {
  12.     Con* pHead;
  13.     Con* pTail;
  14. } ListHead;
  15.  
  16. typedef struct tagCity
  17. {
  18.     int citynum;
  19.     ListHead Head;
  20. }City;
  21.  
  22.  
  23. void MakeEmptyList(ListHead* pFirst);
  24. void AddElement(int cityB, char rtype, int dist, ListHead* pHead);
  25. City** Read();
  26. void Print(City** Cities);
Add Comment
Please, Sign In to add comment