fork download
  1. #include <stdint.h>
  2.  
  3. #ifndef BYTE
  4. #define BYTE char
  5. #endif
  6.  
  7. class Tablica_IP {
  8. typedef int16_t IPAddr;
  9. IPAddr m_arrayIPAddrs[7];
  10. public:
  11. void assignIPs();
  12. void pingClients() const;
  13. };
  14.  
  15. struct HeaderBitmapy {
  16.  
  17. BYTE identify[2];
  18. BYTE size[4];
  19. BYTE reserved[4];
  20. BYTE offset[4];
  21.  
  22. };
  23.  
  24. int main() {
  25.  
  26. Tablica_IP* arrIPs = reinterpret_cast<Tablica_IP*>(new HeaderBitmapy);
  27. arrIPs->pingClients();
  28.  
  29.  
  30. // zaś ten przykład bardzo klarownie pokazuje, iż TablicaAdresówIP jest Nagłówkiem Bitmapy.
  31. // zbieg okoliczności?
  32. // spisek CIA?
  33. // olbrzymia luka w zabezpieczeniach komputerowych?
  34. // uważam, że powinny tutaj zostać zadane konkretne pytania i należy zastanowić się, komu tak naprawdę zależy, aby na te pytania nie odpowiadać.
  35.  
  36. }
  37.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
/home/oG2JV7/cclcIGLQ.o: In function `main':
prog.cpp:(.text+0x1e): undefined reference to `Tablica_IP::pingClients() const'
collect2: ld returned 1 exit status
stdout
Standard output is empty