ПК
Size: a a a
ПК
ПК
void*
принимает, к нему каст неявныйПК
Q
ПК
P
P
CA
reinterpret_cast
поменяли в С++20. А как именно?Q
Q
P
ostream& write (const char* s, streamsize n);
Write block of dataПК
Q
АК
fwrite(p, a, b, f) ~= f.write(p, a * b)
Q
P
T
Q
Q
void saveBitmap(char *fileName, int width, int height, unsigned char *data, int sizeData) {
int sizeBitmap=54+(width*height);
struct BmpHeader {
char bitmapSignatureBytes[2] = {'B', 'M'};
uint32_t sizeOfBitmapFile = sizeBitmap;
uint32_t reservedBytes = 0;
uint32_t pixelDataOffset = 54;
} bmpHeader;
Q
Reference to local variable 'sizeBitmap' declared in enclosing function 'saveBitmap'