Q: C++: How might one draw an ASCII character at a specific location in command prompt Basically, I want to be able to create a function where I can go:
draw('C', x, y);
draw('h', x+1, y);
draw('a', x+2, y);
draw('r', x+3, y);

and command prompt will display Char at the given x and y position
All I could figure out in my research is that I will have to include <windows.h>, which I have very minimal experience with, and use the pre-defined content in that library.

A: This might help you get started.  See https://msdn.microsoft.com/en-us/library/windows/desktop/ms682073(v=vs.85).aspx for more info.
#include <windows.h>
#include <stdio.h>

void main()
{
    HANDLE screenBuffer = CreateConsoleScreenBuffer(
        GENERIC_READ | GENERIC_WRITE,
        FILE_SHARE_READ | FILE_SHARE_WRITE,
        NULL,
        CONSOLE_TEXTMODE_BUFFER,
        NULL);

    if (screenBuffer == INVALID_HANDLE_VALUE)
    {
        printf("CreateConsoleScreenBuffer failed - (%d)\n", GetLastError());
        return;
    }

    if (!SetConsoleActiveScreenBuffer(screenBuffer))
    {
        printf("SetConsoleActiveScreenBuffer failed - (%d)\n", GetLastError());
        CloseHandle(screenBuffer);
        return;
    }

    for (int x = 0; x < 10; ++x)
    {
        DWORD numCharsWritten;
        WriteConsoleOutputCharacter(screenBuffer, "X", 1, COORD{(short)x, 1}, &numCharsWritten);

        Sleep(1000);
    }

    CloseHandle(screenBuffer);
}

