Writes that count is an undeclared identifier ...

#include "stdafx.h" #include <iostream> int _tmain(int argc, _TCHAR* argv[]) { count << "Hello World"; return 0; } 
  • 3
    The console output operator is cout, not count! I do not put a minus out of the kindness of soul. - Vyacheslav Kirichenko
  • There was already such a question somewhere ... - gammaker
  • lol what ??? correctly write cout \ <\ <"Hello, world !; - sudo97
  • And where do such stupid questions come from? What, it was impossible to look at the book, as there "Hello, World!" made? > The console output operator is cout, not count! I do not put a minus out of the kindness of soul. Or maybe you're just a point of respect, as I regretted? - gammaker

3 answers 3

  1. not count, but cout
  2. or after the write to write using namespace std; or write std :: cout

    Probably, instead of count should be std::cout .

      I will not keep silent !!! count must be a variable, and cout << endl;

      • one
        I have to tell you that cout is also variable. - skegg
      • an object!!!! - sudo97
      • Do not ponder. - skegg
      • since C ++ is OOP, then cout is an object. Sometimes I have even met the name "stream", but the variable is never. - sudo97
      • one
        A variable is roughly the name of a certain area of ​​memory that has some kind of structure and contains something in itself. This name gives access to this area. An object is a kind of physical reality in memory, and access to it is provided by a variable that has the type of this memory area, in this case an abstract type, that is, classroom - skegg