Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jakoś tak dziwnie maskę 255.0.0.0 zamienia ;|
- 11111111
- 11111111 00000000
- 11111111 00000000
- 11111111 00000000 00000000
- 11111111 00000000 00000000 1000000010000000001010001001000
- 11111111 00000000 00000000 1000000010000000001010001001000 00000000
- 11111111 00000000 00000000 1000000010000000001010001001000 00000000
- problem jest w
- string tempI, tempM;
- rI[0]=naBin(robIp[0]);
- string zero="00000000";
- tempI=zero.substr(0, 8-naBin(robIp[0]).length());
- tempI+=naBin(robIp[0]);
- tempM=zero.substr(0, 8-naBin(robMas[0]).length());
- tempM+=naBin(robMas[0]);
- for(i=1; i<4; i++){
- tempI+=zero.substr(0, 8-naBin(robIp[i]).length());
- tempI+=naBin(robIp[i]);
- tempM+=zero.substr(0, 8-naBin(robMas[i]).length());
- tempM+=naBin(robMas[i]);
- }
Add Comment
Please, Sign In to add comment