#include #include #include int main() { std::ifstream file("lenna.ppm"); std::string header; file >> header; int w, h, n; file >> w >> h >> n; std::cout << " header:" << header << " w:" << w << " h:" << h << " n:" << n << std::endl; for(int i = 0; i < 3 * w * h; i++){ int col; file >> col; } }