i was trying to hold an image into a string (png) then i was going to try and view it using sdl why does the computer beeps then crashes when i try to output the string (excuse me im a newbie)
#include "http.h"
#include<iostream>
#pragma comment (lib,"winhttp.lib")
using namespace std;
http_connect c;
int main()
{
c.open_session(L"maps.googleapis.com");
c.request(L"/maps/api/staticmap?center=-15.800513,-47.91378&zoom=11&size=200x200&sensor=false");
c.read_data();
std::cout<<c.data();
c.end_connection();
system("pause");
};
if you want the full code (including http class) go here
My guess is you are trying to print binary data (png) as a string. That will cause lots of beeping like you describe.