--Originally published at how not to program
Here is a code of how to use comments
#include <iostream>
using namespace std;
// Add a Double “//” then just type. The program will ignore the text after the “//”
int main()
{
cout << “Hello world!” << endl;
// No matter where in the code it is
/* you can also use “/*” to start a coment but you need to close it just like a parenthesis with “* /” */
return 0;
}