Originally posted by tangerine
Originally posted by RussianVodka
Hey Venge... so far for my n00b programing, i only used \"//\" coments... what are \"/*\" coments suposed to do? Or are they the same thing?
/* is comment of C language and can be used for multi-line comments
// is available in C++ only and can be used for single-line comments only
Just to not confuse the guy, /* */ is used for multi-line commenting. You must close the comment tag.
Eg.
//My comment
/*
My comment
Brief desription or whatever I want here
*/
There are a few issues I have found working with C++ where I want to quickly comment out a huge chunk of code for debugging, inside the chunk however is another multi-line comment, it doesn\'t work too well for me...
I started C++ through a book, really basic:
A guide to Programming C++
http://www.lvp.com