[SIZE="7"][color="MediumTurquoise"]Cobalt Figure 8[/color][/SIZE]UC Pseudonym wrote:For a while I wasn't sure how to answer this, and then I thought "What would Batman do?" Excuse me while I find a warehouse with a skylight...
Yeah, what I really need to include is basic crap like my name/course/assignment#/etc in a comment at the top of the source code. We have to print our .cpp and turn it in, so I need the info in the same file for printing.shooraijin (post: 1459690) wrote:That's not really a template, though. That's just using the preprocessor.
[SIZE="7"][color="MediumTurquoise"]Cobalt Figure 8[/color][/SIZE]UC Pseudonym wrote:For a while I wasn't sure how to answer this, and then I thought "What would Batman do?" Excuse me while I find a warehouse with a skylight...
Furen (post: 1459869) wrote:[color="Lime"]// Commenting is easy, though I agree it's annoying when
//The teacher makes you do it for everything
//As well as for the naming of variables.[/color]
so I don't know the exact problem though... :/
blkmage (post: 1460102) wrote:The reason teachers make students comment excessively in classwork is because people who are learning how to program are obviously very bad at writing good code.
Furen (post: 1460028) wrote:int intH = 100 [color="Lime"]//Health Variable[/color]
int healthValue = 100 [color="Lime"]// Must be in range 0-100[/color]
Users browsing this forum: No registered users and 130 guests