Original Post
I am just curious as to how everyone comments their code...
I do mine like this:
//================= CLASS ===================
// CLASS X
//===========================================
class X
{
public:
/*
* Functions
*/
void DoSomething();
/*
* Variables
*/
int Something;
}
/*@@@@@@@@@@@@@ FUNCTION @@@@@@@@@@@@@@*
* DoSomething *
*@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@*/
void X::DoSomething
{
// Initailiza our vars...
char* z;
z = new char[125]; // We need a 125-byte buffer
//Clean up
delete[] z; // z was a char* that we used as a buffer
}