Viewing a single comment thread. View all comments

4e_65_6f t1_j0rf0hq wrote

I found that it works better if you keep it short, like tell it to write just a function or a small part of the code rather than the whole thing. Also explain in obnoxious detail what is supposed to be happening and it often gets it right.

It's really good at improving already written code also, I used it to make my code shorter and more efficient.

3

BinaryMan151 t1_j0tem1w wrote

I tested it and asked it to write a loop counting down from 10 - 1 in C++ and it did it perfectly. It created a for loop and the code was there. It even instructed me how to run the program.

1