TEA BREAK WITH C++: Paragraph Comments (Multiple Line Comment)

Bookmark

No account yet? Register

NOTE: You may download codes and extra source material for this book from https://bookofengineering.com/easyseries/

Another type of comment is paragraph comment (or multiple line comment) where you start commenting with “*/” and end with “/*”

  1. //my first c++ program
  2. #include <iostream>
  3. using namespace std; 
  4. int main(){
  5. cout<<“hello world!”;
  6. return 0;
  7. system(“pause”);
  8. }
  9. /* This ends 
  10. the file */

 So here the lines #9 and #10 is an example to the multiple line comment. 

NOTE: You may buy this course in paperbook book format from https://www.amazon.com/dp/B0892HQTGS

FavoriteLoadingAdd to favorites
Spread the love

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.