Guest User

Untitled

a guest
Nov 25th, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. struct city {
  2. int city_num;
  3. int num_links;
  4. bool links[500][50001];
  5.  
  6. void linkify() {
  7. for (int i = 0; i < 500;i++) {
  8. for (int j = 0; j < 50001;j++) {
  9. links[i][j] = false;
  10. }
  11. }
  12. }
  13.  
  14. void add_link(int to,int trans) {
  15. links[to][trans] = true;
  16. }
  17.  
  18. };
Add Comment
Please, Sign In to add comment