+ 2

Please uhm what is the use of multi-line comment in c++....how and when will i use it

5th Jun 2018, 12:48 PM
Goodnow Merenini
Goodnow Merenini - avatar
3 odpowiedzi
+ 2
If you want to comment a huge block of text or code. It's easier to just type /* in the beginning and */ at the end of such a block than having // in front of every line. However most editors support a shortcut to comment multiple selected lines using //
5th Jun 2018, 12:53 PM
Matthias
Matthias - avatar
+ 2
// This is a single-line comment in C++. // This is a really long comment // that is very long and can span // multiple lines. /* C++ supports comments like this */ (newline is ignored) /* * This is a prettier version of * this style of comment (aka * a C-style comment). * The *s on the begining of * each line are cosmetic-only. */
5th Jun 2018, 2:15 PM
Vlad Serbu
Vlad Serbu - avatar
+ 2
thanks guys
5th Jun 2018, 7:09 PM
Goodnow Merenini
Goodnow Merenini - avatar