If I post a question to Stack Overflow that contains large snippets (or the entire thing) of my code, that will be assessed by my university, does this count as plagiarism?
Even though I have written the code myself, when the university sends the document through a plagiarism checker, which compares the similarity of the content of my work to that of work found online, it will spot that my code is on a website and flag this as plagiarism.
Obviously I could just change a few words in the code but I don't think that this will be enough.
So I have two questions:
What is the Stack Overflow policy on posting code that will be assessed by a university?
If I post the code, get my answers, and then delete the question will this prevent the plagiarism software from finding my code on the site? (This question sounds very dodgy. I'm not trying to plagiarize without getting caught. The code is my own but the software will not realize that. I also understand that deleting a question goes against the idea of building up a knowledge base of questions and answers, but under these circumstances will it be okay to do so?)
The reason I am asking this is because I have been incredibly stuck on a programming project for a long time, and I could do with posting a large amount of my code to Stack Overflow so I can ask where the problem is coming from. I can't ask a general question without posting my code because I have no idea what the source of the problem is.