Guest User

Untitled

a guest
Jul 17th, 2018
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. jakoś tak dziwnie maskę 255.0.0.0 zamienia ;|
  2. 11111111
  3. 11111111 00000000
  4. 11111111 00000000
  5. 11111111 00000000 00000000
  6. 11111111 00000000 00000000 1000000010000000001010001001000
  7. 11111111 00000000 00000000 1000000010000000001010001001000 00000000
  8. 11111111 00000000 00000000 1000000010000000001010001001000 00000000
  9.  
  10. problem jest w
  11.  
  12. string tempI, tempM;
  13. rI[0]=naBin(robIp[0]);
  14. string zero="00000000";
  15.  
  16. tempI=zero.substr(0, 8-naBin(robIp[0]).length());
  17. tempI+=naBin(robIp[0]);
  18. tempM=zero.substr(0, 8-naBin(robMas[0]).length());
  19. tempM+=naBin(robMas[0]);
  20. for(i=1; i<4; i++){
  21. tempI+=zero.substr(0, 8-naBin(robIp[i]).length());
  22. tempI+=naBin(robIp[i]);
  23. tempM+=zero.substr(0, 8-naBin(robMas[i]).length());
  24. tempM+=naBin(robMas[i]);
  25. }
Add Comment
Please, Sign In to add comment