#include <iostream>
#include <fstream>
#include <exception>
#include <vector>
int main(void)
{
try {
std::vector<unsigned char> data(header.
data_size());
for (uintmax_t y = 0; y < 128; y++) {
for (uintmax_t x = 0; x < 256; x++) {
unsigned char *pixel = static_cast<unsigned char *>(
pixel[0] = x;
pixel[1] = 2 * y;
pixel[2] = 128;
}
}
std::ofstream ofs("rgb.gta", std::ios::out | std::ios::binary);
ofs.close();
std::ifstream ifs("rgb.gta", std::ios::in | std::ios::binary);
throw std::exception();
}
throw std::exception();
}
}
catch (std::exception &e) {
std::cerr << e.what() << std::endl;
return 1;
}
return 0;
}