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
コメント