C++/Language/Comments

Материал из C\C++ эксперт
Перейти к: навигация, поиск

This is a single line comment

#include <iostream>
using namespace std;
int main()
{
  int i;
  cout << "This is output.\n";  // this is a single line comment
  cout << "Enter a number: ";
  cin >> i;
  cout << i << " squared is " << i*i << "\n";
  return 0;
}