I'm having a problem getting my program to work. What's supposed to happen is that you start with a single pixel and it randomly moves, leaving a trail of pixels behind. If you know this, please help me. Thanks! (By the way, you have to enlarge the window for it to work properly)
using namespace std;
int main(){
int corx = 500;
int cory = 300;
int randomNum;
COLORREF color = RGB(255, 0, 0); // COLORREF to hold the color info`
HWND hwnd = FindWindowA("ConsoleWindowClass", NULL); // Get the HWND
HDC hdc = GetDC(hwnd); // Get the DC from that HWND
#include <random> //C++11
int main()
{
int min=/*MINIMUM_VALUE*/;
int max=/*MAXIMUM_VALUE*/;
std::default_random_engine gen;
std::uniform_int_distribution<int> dist(min,max);
int rand=dist(gen);
return 0;
}