Loading...
「ツール」は右上に移動しました。
利用したサーバー: natural-voltaic-titanium
31いいね 919回再生

The ONE time AI is useful for coding.

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

コメント