Блог пользователя sorbhs

Автор sorbhs, 13 лет назад, По-английски

hello , i am using MS c++ compiler here.Why we can't use ".h" in header files. And also,why we can't use cout,cin,endl like functions here?

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
13 лет назад, скрыть # |
 
Проголосовать: нравится +1 Проголосовать: не нравится

Most headers with ".h" are just for C; C++ has its own equivalents (like cmath instead of math.h).

You can use cout, cin, endl. Maybe you're making some C-exclusive mistake (like not using namespace std).