14 years, 2 months ago
Highlights
I just wanted to add, I don't think it's a good idea to mix malloc/delete. You should use 'new' to allocate your memory.
14 years, 2 months ago
18 years, 7 months ago
Quote:cout << "Number of files: " << (int)*numfiles << "\n";This is only dereferencing one byte. Since numfiles is an array of 4 chars, you're going…
18 years, 7 months ago
18 years, 8 months ago
unsigned long n;n = *((unsigned long *)buf);Is this what you were looking for?
18 years, 8 months ago
Latest Activity
I just wanted to add, I don't think it's a good idea to mix malloc/delete. You should use 'new' to …
14 years, 2 months ago
Quote:cout << "Number of files: " << (int)*numfiles << "\n";This is only dereferencing one byte. Since numfiles is an array …
18 years, 7 months ago
unsigned long n;n = *((unsigned long *)buf);Is this what you were looking for?
18 years, 8 months ago