The ONE time AI is useful for coding.

preview_player
Показать описание
Okay I caved and I start using AI. Here is one instance where it was actually useful.

Prompt:

Given this cpp code snippet that constructs a shape of a alphabet from a 5 by 5 array, create the next pattern for all letters of the alphabet.

const Array2D A_mapping = {
1, 1, 1, 1, 1,
1, 0, 0, 0, 1,
1, 1, 1, 1, 1,
1, 0, 0, 0, 1,
1, 0, 0, 0, 1
};

const Array2D B_mapping = {
1, 1, 1, 1, 0,
1, 0, 0, 0, 1,
1, 1, 1, 1, 1,
1, 0, 0, 0, 1,
1, 1, 1, 1, 1
};

const Array2D C_mapping = {
1, 1, 1, 1, 1,
1, 0, 0, 0, 0,
1, 0, 0, 0, 0,
1, 0, 0, 0, 0,
1, 1, 1, 1, 1
};

const Array2D D_mapping = {
1, 1, 1, 0, 0,
1, 0, 0, 1, 0,
1, 0, 0, 0, 1,
1, 0, 0, 0, 1,
1, 1, 1, 1, 0
};

#programming #coding #cpp #generativeai
Рекомендации по теме
Комментарии
Автор

Democoding, we did it with Assembler-Code in 90ths

Subraumspalte