The object code is an intermediary representation the compiler generates for each translation unit before linking the final executable. Typical extensions are .o and .obj.
The .cpp is just source code, but you probably also submitted some compiler output. Maybe you use wildcards such as "my_program.*" instead of, say, "my_program.c*" when selecting/copying the files?
Also, she said I didn't have proper descriptions/comments, is there a formal way of writing those in a c++ file? |
There is, in the sense that whether something is a comment or not has a
format formal definition.
There isn't, in the sense that there are no formal rules for writing comments (otherwise, they'd probably be indistinguishable from actual code). There are only general guidelines, such as "comment interfaces", "warn about possible bugs/gotchas", or "comment what you
think the code is doing or what it should be doing, not what it actually does" (that last one is a double-edged weapon, by the way).
Honestly, though, I don't know why teachers bother insisting that students comment code. Badly commented code is much worse than uncommented code, and you can only comment properly once you've become proficient in the language and can decide whether something needs explanation or not, and how to explain it.