opening image file on c++ , PNG , JPEG
<p>I have tried to open bg.png file , but didn't work. There is no error , but nothing appears. Help Me!</p>

<pre><code>int main()
    {
        initwindow(600,600,"GAME");
        ifstream image("bg.png");
        getimage(50, 50 , 450 , 450 , image);
        putimage(50,50,image,COPY_PUT);
        system("pause");
    }
</code></pre>