There are no blog posts

I feel sick. I won’t throw up, but I feel like I could. I am exhausted, I am self-loathing, and I can never cry, even though I’m certain that it would feel liberating.

#include <iostream>
#include <vector>
using namespace std;

int main() {
  int width = 0, height = 0;
  cin >> height >> width;

  width = width * 2 - 1;

  vector<vector<bool>> matrix(width, vector<bool>(height, false));

  int middle = ((width + 1) / 2) - 1;
  for (int i = 0; i < height; ++i) {
    matrix.at(middle).at(i) = true;

    if (middle + i < width) {
      matrix.at(middle + i).at(i) = true;
    }
    if (middle - i >= 0) {
      matrix.at(middle - i).at(i) = true;
    }
  }

  for (int row = 0; row < height; ++row) {
    for (int column = 0; column < width; ++column) {
      if (matrix.at(column).at(row)) {
        cout << "*";
      } else {
        cout << " ";
      }
    }
    cout << '\n';
  }
}