The following statement was written by a former CS70 student who unintentionally violated the honor code. As part of an out-of-court settlement, the student was asked to write a short explanation of what happened, so that other students would not make the same mistake.
In CS 70 you will find yourself confronted with both the majesty and futility of the C++ language. And throughout this experience you will find yourself building upon and working with code that is supplied to you by the professor. Yet it must also be noted that the CS Department strictly forbids the sharing and borrowing of code in any form. As a student you are encouraged to discuss the algorithms and data structures you are planning on using, but any discussion is never to include specifics of the code. This policy has been implemented to encourage every student to gain a full understanding of the languages and styles that they are exposed to. Unfortunately this is not always explicitly told to students, and I found myself in a situation where I wrongfully borrowed code from a friend. Thus it was decided that I should warn future students of this problem. So, I would like to tell you all two things. First and foremost, sharing code is against the honor code and you should never copy or allow others to copy your code. Thus the only code that you may use that you have not written is code that the professor has explicitly given to you. If you have any questions you should ask your professor.